variables going crazy ... or may be I ...
Posted: Sat Sep 07, 2002 9:03 am
Hallo,
I have this part of code
After this $id is string, and its value is 100.
this is next part of code
So this not work
when I replace $id in $param 'root_id' => '100' , everything is o.k.
when I set $id = '100' , everything is o.k.
but when i set $id via list() ....
this is one test
this output this :
id is .100. of type string
id is .100. of type string
Have an idea what is wrong ?
I have this part of code
Code: Select all
<?php
list($id,$name,$desc) = explode ('|',$begin);
?>this is next part of code
Code: Select all
<?php
$param = array (
'root_id' = $id
);
$param = xslt_process(xslp, 'agr:/_xml','arg:/_xsl', NULL, $arg, $param);
?>So this not work
when I replace $id in $param 'root_id' => '100' , everything is o.k.
when I set $id = '100' , everything is o.k.
but when i set $id via list() ....
this is one test
Code: Select all
<?php
echo 'id is .'$id.'.of type '.gettype($id); // don't work
$id = '100';
echo 'id is .'$id.'.of type '.gettype($id); // work
?>id is .100. of type string
id is .100. of type string
Have an idea what is wrong ?