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.operators.increment.php
Is there a php equivalent for the use o
: [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 string concantenation operator (a period) to use
things
like $test++, else
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
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
[EMAIL
es, 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]
Subject: Re: [PHP] php equivalent for `command`
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.operators.increment.php
Is there a php equivalent for the use of ` (I think) in Uni
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++br";
echo "The number is: $n++br";
echo "The number is: $n++br";
PHP will not increment a variable inside of a
8 matches
Mail list logo