Name
token_get_all
Synopsis
array token_get_all(string source
)
Parses the PHP code source
into PHP
language tokens and returns them as an array. Each element in the
array contains a single character token or a three-element array
containing, in order, the token index, the source string representing
the token, and the line number the source
appeared in source.
Get Programming PHP, 3rd Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.