Jump to content

Help with brackets


mwstewart

Recommended Posts

Hi all,

      I'm new to PHP and development in general. Please could someone tell me what the square brackets are for in the following statement:

 

if (isset($output[plusOne($number2)])){
        echo "Test successful.";
}

 

I assume they permit the output of the 'plusOne' function to be assigned to the $output variable. Is that correct?

Link to comment
https://forums.phpfreaks.com/topic/139844-help-with-brackets/
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.