Re: Parsing Variables Inside a String
| From: | Chris | Date: | Wed, 15 Aug 2007 07:07:39 +0000 |
| Subject: | Re: Parsing Variables Inside a String | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-260838@lists.php.net to get a copy of this message | ||
heavyccasey@gmail.com wrote:
Hi, is there a function that can parse variables within a string? For example: $good_day = 'The'; $fr['iop'] = "y're crazy!"; $new = '$good_day$fr['iop']'; echo TheFunctionIRequest($new); // They're crazy!Well this: echo $good_day . $fr['iop']; will do what you show here. What are you trying to do exactly? -- Postgresql & php tutorials http://www.designmagick.com/