[GLLUG] PHP Variable problem
Mike Rambo
mrambo@lsd.k12.mi.us
Mon, 10 Mar 2003 16:25:53 -0500
Mike Szumlinski wrote:
>
> This is probably a really easy one...
>
> Does anyone know how to append text to a PHP variable that is currently
> held as a string? Example
>
> $myVar = "Blaaaah";
>
> echo "$myVar_now";
>
> I want that to spit out "Blaaaah_now"
>
Not sure about directly in the echo statement (not near a box I can play
on either) but you should be able to do something like...
$myVar = "Blaaaah";
$myVar = $myVar . '_now';
echo "$myVar";
...if you don't mind the extra statement.
--
Mike Rambo
mrambo@lsd.k12.mi.us