note 35435 rejected from function.token-get-all by betz

From: Date: Mon, 01 Sep 2003 10:45:13 +0000
Subject: note 35435 rejected from function.token-get-all by betz
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-55397@lists.php.net to get a copy of this message
Note Submitter: ---- It seems that the tokenizer has some chaotic element to it, or perhaps something in level hidden from users, but the function seems to return PHP delimeters as two strings of the two parts respectivly, instead of one delimiter token. I failed to find why, but if your scripts act chaoticly, then you might need to lookout for the PHP Delimeters. The best way to do it that I can see so far is by looking for '<' and '>' strings in the tokens array ( i.e an element in the tokens array that is not an array by itself and has a on character length) followed or prefixed by a '?'. It is then possible to replace those occurances with a proper token element.

« previous php.notes (#55397) next »