Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

php is a hard charger

Name: Anonymous 2006-06-26 15:22

why can't i do

$host = parse_url($url)['host'];

Name: Anonymous 2006-06-27 10:00

>>1
>>6
Unfortunately, PHP's [] operator can only be applied to lvalues. In other words, if you have a function which returns an array, you must save it in a variable before you can access it. This limitation is kind of ridiculous for this day and age, but...

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List