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 ) Quote Link to comment 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. Quote Link to comment 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. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.