Searched refs:token_get_all (Results 1 – 25 of 45) sorted by path
12
6 foreach (token_get_all($s) as $token) {
16 token_get_all("<?php\n/**\n * Foo\n */"); // doc_comment compiler global now contains this Foo comm…23 token_get_all("<?php\n/**\n * Foo\n */"); // doc_comment compiler global now contains this Foo comm…
2 token_get_all()17 var_dump(token_get_all($s));
2 token_get_all() and wrong parameters8 var_dump(token_get_all(""));9 var_dump(token_get_all(0));10 var_dump(token_get_all(-1));
8 $tokens = token_get_all('<?php #[A1(1, 2)] class C1 { }');
2 token_get_all() produces T_BAD_CHARACTER for unexpected characters15 foreach (token_get_all($code) as $token) {
2 Bug #26463 (token_get_all() does not correctly handle semicolons after T_END_HEREDOC)16 var_dump(token_get_all($str));
2 Bug #54089 (token_get_all() does not stop after __halt_compiler)16 $tokens = token_get_all($code);
2 Bug 60097: token_get_all fails to lex nested heredoc8 var_dump(token_get_all('<?php
8 $powToken = token_get_all('<?php **')[1][0];11 $powEqualToken = token_get_all('<?php **=')[1][0];
2 Bug #76437 (token_get_all with TOKEN_PARSE flag fails to recognise close tag)13 $open_tag1 = token_get_all($code)[$index];14 $open_tag2 = token_get_all($code, TOKEN_PARSE)[$index];
18 foreach (token_get_all($code) as $token) {
8 var_dump(token_get_all("<?php 0_10000000000000000000009;"));
7 echo token_name(token_get_all('<?php 0177777777777777777777787')[1][0]), "\n";
10 var_dump(token_get_all(<<<'PHP'
2 Parse errors during token_get_all()10 var_dump(token_get_all($code, TOKEN_PARSE));15 foreach (token_get_all($code) as $token) {
10 foreach (token_get_all("<?php") as $token) {14 foreach (token_get_all("Foobar<?php") as $token) {
2 Parse errors during token_get_all() with TOKEN_PARSE flag9 token_get_all('<?php invalid code;', TOKEN_PARSE);
7 $tokens = token_get_all('<?php
2 Test token_get_all() function : basic functionality7 echo "*** Testing token_get_all() : basic functionality ***\n";12 var_dump( token_get_all($source) );17 var_dump( token_get_all($source) );22 *** Testing token_get_all() : basic functionality ***
2 Flexible heredoc and nowdoc testing with token_get_all11 $tokens = token_get_all($code, $flags);
2 Test token_get_all() function : usage variations - with constant tokens16 echo "*** Testing token_get_all() : 'source' string with different constants ***\n";40 var_dump( token_get_all($source[$count]));46 *** Testing token_get_all() : 'source' string with different constants ***
2 Test token_get_all() function : usage variations - with control structure tokens19 echo "*** Testing token_get_all() : for control structure tokens ***\n";35 var_dump( token_get_all($source));48 var_dump( token_get_all($source));60 var_dump( token_get_all($source));69 var_dump( token_get_all($source));74 *** Testing token_get_all() : for control structure tokens ***
Completed in 23 milliseconds