Hi
I have 2 array elements that I want to convert to their own variable
I can print them to the screen
echo $titles[0]
echo $titles[1]
I want to to convert both of them to their own variable name.
How can I do this?
Thanks
TOolJob😕
$title_a = $titles[0]; $title_b = $titles[1];
Not that it really buys you much of anything, other than you avoid typing some square braces later.
NogDog wrote:Not that it really buys you much of anything, other than you avoid typing some square braces later.
But that's offset by now having to type "_", which requires more overall coordination.