Skip to main content
AI Assist is now on Stack Overflow. Start a chat to get instant answers from across the network. Sign up to save and share your chats.
added 17 characters in body
Source Link
Gordon
  • 317.8k
  • 76
  • 548
  • 566

Since it wouldn't add any value to repeat that it means echo, I thought you'd like to see what means in PHP exactly:

Array ( [0] => Array ( [0] => 368 // T_OPEN_TAG_WITH_ECHO [1] => <?= [2] => 1 ) [1] => Array ( [0] => 309 // T_VARIABLE [1] => $a [2] => 1 ) [2] => ; // UNKNOWN <--(because odd,it isn'tis itoptional (ignored)) [3] => Array ( [0] => 369 // T_CLOSE_TAG [1] => ?> [2] => 1 ) ) 

You can use this code to test it yourself:

$tokens = token_get_all('<?=$a;?>'); print_r($tokens); foreach($tokens as $token){ echo token_name((int) $token[0]), PHP_EOL; } 

From the List of Parser Tokens, here is what T_OPEN_TAG_WITH_ECHO links to.

Since it wouldn't add any value to repeat that it means echo, I thought you'd like to see what means in PHP exactly:

Array ( [0] => Array ( [0] => 368 // T_OPEN_TAG_WITH_ECHO [1] => <?= [2] => 1 ) [1] => Array ( [0] => 309 // T_VARIABLE [1] => $a [2] => 1 ) [2] => ; // UNKNOWN <-- odd, isn't it [3] => Array ( [0] => 369 // T_CLOSE_TAG [1] => ?> [2] => 1 ) ) 

You can use this code to test it yourself:

$tokens = token_get_all('<?=$a;?>'); print_r($tokens); foreach($tokens as $token){ echo token_name((int) $token[0]), PHP_EOL; } 

From the List of Parser Tokens, here is what T_OPEN_TAG_WITH_ECHO links to.

Since it wouldn't add any value to repeat that it means echo, I thought you'd like to see what means in PHP exactly:

Array ( [0] => Array ( [0] => 368 // T_OPEN_TAG_WITH_ECHO [1] => <?= [2] => 1 ) [1] => Array ( [0] => 309 // T_VARIABLE [1] => $a [2] => 1 ) [2] => ; // UNKNOWN (because it is optional (ignored)) [3] => Array ( [0] => 369 // T_CLOSE_TAG [1] => ?> [2] => 1 ) ) 

You can use this code to test it yourself:

$tokens = token_get_all('<?=$a;?>'); print_r($tokens); foreach($tokens as $token){ echo token_name((int) $token[0]), PHP_EOL; } 

From the List of Parser Tokens, here is what T_OPEN_TAG_WITH_ECHO links to.

added 212 characters in body
Source Link
Gordon
  • 317.8k
  • 76
  • 548
  • 566

Since it wouldn't add any value to repeat that it means echo, I thought you'd like to see what means in PHP exactly:

Array ( [0] => Array ( [0] => 368 // T_OPEN_TAG_WITH_ECHO [1] => <?= [2] => 1 ) [1] => Array ( [0] => 309 // T_VARIABLE [1] => $a [2] => 1 ) [2] => ; // UNKNOWN <-- odd, isn't it [3] => Array ( [0] => 369 // T_CLOSE_TAG [1] => ?> [2] => 1 ) ) 

You can use this code to test it yourself:

$tokens = token_get_all('<?=$a;?>'); print_r($tokens); foreach($tokens as $token){ echo token_name((int) $token[0]), PHP_EOL; } 

From the List of Parser Tokens, here is what T_OPEN_TAG_WITH_ECHO links to.

Since it wouldn't add any value to repeat that it means echo, I thought you'd like to see what means in PHP exactly:

Array ( [0] => Array ( [0] => 368 // T_OPEN_TAG_WITH_ECHO [1] => <?= [2] => 1 ) [1] => Array ( [0] => 309 // T_VARIABLE [1] => $a [2] => 1 ) [2] => ; // UNKNOWN <-- odd, isn't it [3] => Array ( [0] => 369 // T_CLOSE_TAG [1] => ?> [2] => 1 ) ) 

You can use this code to test it yourself:

$tokens = token_get_all('<?=$a;?>'); print_r($tokens); foreach($tokens as $token){ echo token_name((int) $token[0]), PHP_EOL; } 

Since it wouldn't add any value to repeat that it means echo, I thought you'd like to see what means in PHP exactly:

Array ( [0] => Array ( [0] => 368 // T_OPEN_TAG_WITH_ECHO [1] => <?= [2] => 1 ) [1] => Array ( [0] => 309 // T_VARIABLE [1] => $a [2] => 1 ) [2] => ; // UNKNOWN <-- odd, isn't it [3] => Array ( [0] => 369 // T_CLOSE_TAG [1] => ?> [2] => 1 ) ) 

You can use this code to test it yourself:

$tokens = token_get_all('<?=$a;?>'); print_r($tokens); foreach($tokens as $token){ echo token_name((int) $token[0]), PHP_EOL; } 

From the List of Parser Tokens, here is what T_OPEN_TAG_WITH_ECHO links to.

added 4 characters in body
Source Link
Gordon
  • 317.8k
  • 76
  • 548
  • 566

Since it wouldn't add any value to repeat that it means echo, I thought you'd like to see what means in PHP exactly:

Array ( [0] => Array ( [0] => 368 (// T_OPEN_TAG_WITH_ECHO) [1] => <?= [2] => 1 ) [1] => Array ( [0] => 309 (// T_VARIABLE) [1] => $a [2] => 1 ) [2] => ; (// UNKNOWN) <-- odd, isn't it [3] => Array ( [0] => 369 (// T_CLOSE_TAG) [1] => ?> [2] => 1 ) ) 

You can use this code to test it yourself:

$tokens = token_get_all('<?=$a;?>'); print_r($tokens); foreach($tokens as $token){ echo token_name((int) $token[0]), PHP_EOL; } 

Since it wouldn't add any value to repeat that it means echo, I thought you'd like to see what means in PHP exactly:

Array ( [0] => Array ( [0] => 368 (T_OPEN_TAG_WITH_ECHO) [1] => <?= [2] => 1 ) [1] => Array ( [0] => 309 (T_VARIABLE) [1] => $a [2] => 1 ) [2] => ; (UNKNOWN) <-- odd, isn't it [3] => Array ( [0] => 369 (T_CLOSE_TAG) [1] => ?> [2] => 1 ) ) 

You can use this code to test it yourself:

$tokens = token_get_all('<?=$a;?>'); print_r($tokens); foreach($tokens as $token){ echo token_name((int) $token[0]), PHP_EOL; } 

Since it wouldn't add any value to repeat that it means echo, I thought you'd like to see what means in PHP exactly:

Array ( [0] => Array ( [0] => 368 // T_OPEN_TAG_WITH_ECHO [1] => <?= [2] => 1 ) [1] => Array ( [0] => 309 // T_VARIABLE [1] => $a [2] => 1 ) [2] => ; // UNKNOWN <-- odd, isn't it [3] => Array ( [0] => 369 // T_CLOSE_TAG [1] => ?> [2] => 1 ) ) 

You can use this code to test it yourself:

$tokens = token_get_all('<?=$a;?>'); print_r($tokens); foreach($tokens as $token){ echo token_name((int) $token[0]), PHP_EOL; } 
Source Link
Gordon
  • 317.8k
  • 76
  • 548
  • 566
Loading