CTED]]
> Sent: 18 April 2001 15:13
> To: [EMAIL PROTECTED]
> Subject: Re: [PHP] php equivalent for `command`
>
>
> > In the second set of code lines, what I need to do is somehow bracket
off
> the $test++ so it is evaluated before being echoed.
>
> You need to use the
econd set of code lines, what I need to do is somehow bracket off
the $test++ so it is evaluated before being echoed.
>
> Euan
>
>
> -Original Message-
> From: Jason Brooke [mailto:[EMAIL PROTECTED]]
> Sent: 18 April 2001 09:46
> To: Greig, Euan; [EMAIL PROTECTED]
>
at I need to do is somehow bracket off
the $test++ so it is evaluated before being echoed.
>
> Euan
>
>
> -Original Message-
> From: Jason Brooke [mailto:[EMAIL PROTECTED]]
> Sent: 18 April 2001 09:46
> To: Greig, Euan; [EMAIL PROTECTED]
> Subject: Re: [PHP] p
et off the $test++
so it is evaluated before being echoed.
Euan
-Original Message-
From: Jason Brooke [mailto:[EMAIL PROTECTED]]
Sent: 18 April 2001 09:46
To: Greig, Euan; [EMAIL PROTECTED]
Subject: Re: [PHP] php equivalent for `command`
echo ++$x;
http://www.php.net/manual/en/language.o
echo ++$x;
http://www.php.net/manual/en/language.operators.increment.php
> > Is there a php equivalent for the use of ` (I think) in Unix/Perl? So
for example echo "`$x++`" would first evaluate $x++ and then print the
resulting value.
> >
> > Euan Greig
> > Technical Consultant
> > BRANN DATA
> Is there a php equivalent for the use of ` (I think) in Unix/Perl? So for example
>echo "`$x++`" would first evaluate $x++ and then print the resulting value.
>
> Euan Greig
> Technical Consultant
> BRANN DATA
> [EMAIL PROTECTED]
> 01285 645997
>
>
>
**
The backtick operator " ` " is used like an exec() or passthru() function.
But I know what you mean. For instance, try running this in a script:
$n = 1;
echo "The number is: $n++";
echo "The number is: $n++";
echo "The number is: $n++";
PHP will not increment a variable inside of a string. How
Is there a php equivalent for the use of ` (I think) in Unix/Perl? So for example echo
"`$x++`" would first evaluate $x++ and then print the resulting value.
Euan Greig
Technical Consultant
BRANN DATA
[EMAIL PROTECTED]
01285 645997
***
8 matches
Mail list logo