let's say i have a string with:
$var="echo what?;";
and i want to execute that string, how do i do that?
| SitePoint Sponsor |
let's say i have a string with:
$var="echo what?;";
and i want to execute that string, how do i do that?
echo what?; isn't valid PHP, but apart from that, you're looking for eval. Be advised though, that using eval is generally considered bad practise, and can be a source of security problems.
kyberfabrikken
You quick![]()
my mobile portal
ghiris.ro
thanks both, i'll checkout eval!
Bookmarks