Got it figured out by now. I noticed one small bug but I'll fix it monday
morning, so i'm going to post what I did to make this work..
I'm going to donate this code to the guy at
http://www.devdump.com/phpxml.php and hopefully he'll put some of this to a
good use as more and more people are now u
> the xml above is not structurally
> the same as the array below
>
> I'll bet your output has just one message
> element right? or you have gone completely offtrack.
>
> might be time you went here:
>
> http://php.net/xml
> http://php.net/dom
> http://php.net/domxml
>
> might be something the
Scott Fletcher wrote:
Aw!!! This is driving me nut...
It still does :-)
get to grips with var_dump() ...
Um Interesting thought...
($array.$suffix) will never be an array
$suffix .= "['".$key."']";
Yea, you are correct... I was trying to integrate the coding and stumpl
> Aw!!! This is driving me nut...
It still does :-)
> get to grips with var_dump() ...
Um Interesting thought...
> ($array.$suffix) will never be an array
> $suffix .= "['".$key."']";
Yea, you are correct... I was trying to integrate the coding and stumpled
upon this. It's a mind
Scott Fletcher wrote:
To the top...
Aw!!! This is driving me nut... I can't get it to do what I want it to
do... Also, another problem is that we're all not thinking at the same
level so I'll just dump the simple code so you all can see what I'm trying
to do...
[code]
fantastic function -
To the top...
Aw!!! This is driving me nut... I can't get it to do what I want it to
do... Also, another problem is that we're all not thinking at the same
level so I'll just dump the simple code so you all can see what I'm trying
to do...
[code]
function getVal($arr, $path)
{
$retval
see below...
"Jochem Maas" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> see below..
>
> Scott Fletcher wrote:
> > "Jochem Maas" <[EMAIL PROTECTED]> wrote in message
> > news:[EMAIL PROTECTED]
> >
> >>Mike Dunlop wrote:
> >>
> >>>On Sep 27, 2005, at 10:22 AM, Scott Fletcher wrote:
:-)
"Mike Dunlop" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> My bad - that doesn't work - that came off the top off my head. It
> sure did look sexy though, no ?
>
> - MD
>
>
> >> echo ${"array".$prefix};
> >>
> >
> > really? did you test that?
> > doesn't work when I do it (t
My bad - that doesn't work - that came off the top off my head. It
sure did look sexy though, no ?
- MD
echo ${"array".$prefix};
really? did you test that?
doesn't work when I do it (the second expression does
- but doesn't answer the OPs question actually imho the
answer is not eval() e
see below..
Scott Fletcher wrote:
"Jochem Maas" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
Mike Dunlop wrote:
On Sep 27, 2005, at 10:22 AM, Scott Fletcher wrote:
[code]
$array = array();
$array['col1']['col2'] = "Test #1";
$array['col3']['col2'] = "Test #2";
$prefix
"Jochem Maas" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Mike Dunlop wrote:
> > On Sep 27, 2005, at 10:22 AM, Scott Fletcher wrote:
> >
> >> [code]
> >> $array = array();
> >>
> >> $array['col1']['col2'] = "Test #1";
> >> $array['col3']['col2'] = "Test #2";
> >>
> >> $pre
Wow, that seem to work... Should have use "$suffix" instead of "$prefix" to
make it less confusing.
"Silvio Porcellana" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Scott Fletcher wrote:
>
> >What I want this to work instead is
> >[code]
> > $array = array();
> >
> > $array['co
Mike Dunlop wrote:
On Sep 27, 2005, at 10:22 AM, Scott Fletcher wrote:
[code]
$array = array();
$array['col1']['col2'] = "Test #1";
$array['col3']['col2'] = "Test #2";
$prefix = "['col3']['col2']";
echo $array.$prefix; //Spitted out result as "Test #2"...
[/code]
This is the simp
On Sep 27, 2005, at 10:22 AM, Scott Fletcher wrote:
[code]
$array = array();
$array['col1']['col2'] = "Test #1";
$array['col3']['col2'] = "Test #2";
$prefix = "['col3']['col2']";
echo $array.$prefix; //Spitted out result as "Test #2"...
[/code]
This is the simple code that I'm try
Scott Fletcher wrote:
>What I want this to work instead is
>[code]
> $array = array();
>
> $array['col1']['col2'] = "Test #1";
> $array['col3']['col2'] = "Test #2";
>
> $prefix = "['col3']['col2']";
>
> echo $array.$prefix; //Spitted out result as "Test #2"...
>[/code]
>
>
Try something li
15 matches
Mail list logo