[GLLUG] PHP Variable problem
Mike Szumlinski
szumlins@mac.com
Mon, 10 Mar 2003 16:26:10 -0500
Excellent. Thanks all.
-Mike
On Monday, March 10, 2003, at 04:18 PM, Mark Szidik/mlc wrote:
>
> $myVar = "Blaaaah";
>
> echo $myVar . "_now";
>
> the '.' is standard string concatenation in PHP.
>
> ---
> Mark Szidik, CTO
> Michigan Library Consortium
> 1407 Rensen Street, Suite 1, Lansing, MI 48910-3657
> Ph:800.530.9019 x17 Fax:517.394.2096
>
>
> |---------+---------------------------->
> | | Mike Szumlinski |
> | | <szumlins@mac.com|
> | | > |
> | | Sent by: |
> | | linux-user-admin@|
> | | egr.msu.edu |
> | | |
> | | |
> | | 03/10/03 04:04 PM|
> | | |
> |---------+---------------------------->
>> ----------------------------------------------------------------------
>> -----------------------------------------------------|
> |
> |
> | To: linux-user@egr.msu.edu
> |
> | cc:
> |
> | Subject: [GLLUG] PHP Variable problem
> |
>> ----------------------------------------------------------------------
>> -----------------------------------------------------|
>
>
>
>
>
>
>
>
>
> 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"
>
> My problem is that PHP thinks that $myVar_now is a variable, not a
> variable with an...err..appendage.
>
> -Mike
>
> _______________________________________________
> linux-user mailing list
> linux-user@egr.msu.edu
> http://www.egr.msu.edu/mailman/listinfo/linux-user
>
>
>
>
>