nottingham Posted August 26, 2011 Share Posted August 26, 2011 Hello, I always wondered why does PHP.net has [ and ] in code examples. int xml_parse ( resource $parser , string $data [, bool $is_final = false ] ) I mean shouldn't that be, int xml_parse ( resource $parser , string $data , bool $is_final = false ) Link to comment https://forums.phpfreaks.com/topic/245751-a-question-about-phpnet/ Share on other sites More sharing options...
WebStyles Posted August 26, 2011 Share Posted August 26, 2011 they're optional parameters. the ones that don't have the square brackets are mandatory. Link to comment https://forums.phpfreaks.com/topic/245751-a-question-about-phpnet/#findComment-1262205 Share on other sites More sharing options...
nottingham Posted August 26, 2011 Author Share Posted August 26, 2011 they're optional parameters. the ones that don't have the square brackets are mandatory. Thank you very much sir. Link to comment https://forums.phpfreaks.com/topic/245751-a-question-about-phpnet/#findComment-1262212 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.