Sorry, you can’t do that. It only works for simple expressions. See here.
More Related Contents:
- Static variables in PHP
- Public static variable value
- How do I pass JavaScript variables to PHP?
- PHP – concatenate or directly insert variables in string
- Are PHP Variables passed by value or by reference?
- php – insert a variable in an echo string
- PHP Multiple Checkbox Array
- PHP explode the string, but treat words in quotes as a single word
- Why does PHP 5.2+ disallow abstract static class methods?
- Dollar ($) sign in password string treated as variable
- Best way to test for a variable’s existence in PHP; isset() is clearly broken
- Passing multiple variables to another page in url
- Create new variables from array keys in PHP
- Use a variable to define a PHP function
- How to get int instead string from form?
- Is it possible to create static classes in PHP (like in C#)?
- Non-static method ….. should not be called statically
- PHP function with variable as default value for a parameter
- How do I replace double quotes with single quotes
- Why PHP variables start with a $ sign symbol?
- Get variables from the outside, inside a function in PHP
- Transfer variables between PHP pages
- Storing Form Data as a Session Variable
- In PHP, is there a short way to compare a variable to multiple values?
- Undefined variable problem with PHP function
- How do you pass objects by reference in PHP 5?
- Strict mode in PHP
- PHP global or $GLOBALS
- Magento – Passing data between a controller and a block
- Does static method in PHP have any difference with non-static method?