Just had a thought... is there a way to compare the result of a function where the result is an array by adding the key number to the end of the function?
Some sort of syntax like this?
Code: Select all
if ($var == explode(',', $string)[1] ) {Is there an alternative syntax/way of doing things I'm missing out on?
Cheers, B