Jump to content

get array notation...


jimfog

Recommended Posts

Does the below code checks if in a GET array, the key named expand has a value of all?

if(isset($_GET['expand']=='all'))

Link to comment
Share on other sites

no, it is not right way.it will be like

 if(isset($_GET['expand']) && $_GET['expand']=='all')

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...