¡@

Home 

php Programming Glossary: t_whitespace

How can I find unused functions in a PHP project

http://stackoverflow.com/questions/11532/how-can-i-find-unused-functions-in-a-php-project

if token 0 T_FUNCTION continue i token tokens i if token 0 T_WHITESPACE die T_WHITESPACE i token tokens i if token 0 T_STRING die T_STRING.. continue i token tokens i if token 0 T_WHITESPACE die T_WHITESPACE i token tokens i if token 0 T_STRING die T_STRING functions..

Regular Expression to extract php code partially (( array definition ))

http://stackoverflow.com/questions/17118032/regular-expression-to-extract-php-code-partially-array-definition

escape wait_for_non_whitespace is_array token i token i 0 T_WHITESPACE escape 1 wait_for_non_whitespace 0 entry . ' here is a T_DOUBLE_ARROW.. token i 1 else addChar token i if entry token i 0 T_WHITESPACE newcode . addChar else entry . escape str_replace array '..

Simulate php array language construct or parse with regexp?

http://stackoverflow.com/questions/3267951/simulate-php-array-language-construct-or-parse-with-regexp

true T_LNUMBER true T_DNUMBER true T_DOUBLE_ARROW true T_WHITESPACE true allowedChars array ' ' true ' ' true ' ' true tokens..

Automatically parsing PHP to separate PHP code from HTML

http://stackoverflow.com/questions/4118741/automatically-parsing-php-to-separate-php-code-from-html

output yet you can all whitespace is preserved as T_WHITESPACE tokens. Here's how you might turn the tokenized output back..

Regex to parse define() contents, possible?

http://stackoverflow.com/questions/645862/regex-to-parse-define-contents-possible

while token dump state token if is_array token if token 0 T_WHITESPACE token 0 T_COMMENT token 0 T_DOC_COMMENT do nothing else if..

reliably convert string containing PHP array info to array [duplicate]

http://stackoverflow.com/questions/7873354/reliably-convert-string-containing-php-array-info-to-array

315 T_DOUBLE_ARROW 358 T_ARRAY 360 T_WHITESPACE 371 The token index number can be given a token name by using..

Determining what classes are defined in a PHP class file

http://stackoverflow.com/questions/928928/determining-what-classes-are-defined-in-a-php-class-file

for i 2 i count i if tokens i 2 0 T_CLASS tokens i 1 0 T_WHITESPACE tokens i 0 T_STRING class_name tokens i 1 classes class_name..