Jump to content

Array in an Array?? ?


TheFilmGod

Recommended Posts

echo $error_text[$error_display[0]];

 

works perfectly correct. But what if I want to use that variable to compare it to a number... how would I evaluate it so the computer can calculate it?

 

this doesn't seem right... or should it work?

 

if ( ($error_text[$error_display[0]]) == 4) { ...}

Link to comment
https://forums.phpfreaks.com/topic/121157-array-in-an-array/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.