PHP create_function, function without semicolon?

Posted by Ozzy on Stack Overflow See other posts from Stack Overflow or by Ozzy
Published on 2011-01-14T04:38:41Z Indexed on 2011/01/14 4:53 UTC
Read the original article Hit count: 259

Filed under:
|
|

hi all, basically, what i want to know is, for the second parameter in the create_function function, is there anyway to pass a string without a semicolon? or will it not work.

example:

taken from php.net
create_function('$a,$b', 'return "CRCs: " . crc32($a) . " , ".crc32(b);'),

notice that there is a semicolon in the string. is there any possible way someone can enter a function without a semicolon that will still run/evaluate?

© Stack Overflow or respective owner

Related posts about php

Related posts about function