Jump to content
Larry Ullman's Book Forums

Question About The Print_R Function


Recommended Posts

If you want to return the information from print_r rather than print it, use TRUE (1 boolean as in this example). :)

 

echo '<h3>Array As Is</h3><pre>' . print_r($students, TRUE) . '</pre>';

Is working exactly the same way.

 

Thanks, Antonio.

Link to comment
Share on other sites

 Share

×
×
  • Create New...