Hi
I have been looking into php.net, but could not find any proper
description.
There is a way of assigning variables from functions, while at the
same time using them in e.g. an if.
I have tried to use this, but failed.... and I have not found any
proper information about this?
E.g., if I am right, then
if(strpos($line , '='))
could be
if( ($i=strpos($lin e, '=')) !== false )
echo $i;
but just how does this work? the parantheses do it?
I asume I have to understand that as a statement in a statement?
WBR
Sonnich
I have been looking into php.net, but could not find any proper
description.
There is a way of assigning variables from functions, while at the
same time using them in e.g. an if.
I have tried to use this, but failed.... and I have not found any
proper information about this?
E.g., if I am right, then
if(strpos($line , '='))
could be
if( ($i=strpos($lin e, '=')) !== false )
echo $i;
but just how does this work? the parantheses do it?
I asume I have to understand that as a statement in a statement?
WBR
Sonnich
Comment