Jump to content

[SOLVED] help with string format


tqla

Recommended Posts

This string works:

if (isset($blank_array) && $_POST['answer'] == 'No') { ?>

 

I'd like to add one more item to the ($blank_array) part called $bad_format. It should be of the 'or' type where it checks if any of them are set.

 

I tried this:

if (isset($blank_array || $bad_format) && $_POST['answer'] == 'No') { ?>

 

but I got this error:

Parse error: syntax error, unexpected T_BOOLEAN_OR, expecting ',' or ')'

 

So I tried this:

if (isset($blank_array or $bad_format) && $_POST['answer'] == 'No') { ?>

 

And got another error.

 

What am I doing wrong?  ???

Link to comment
https://forums.phpfreaks.com/topic/80514-solved-help-with-string-format/
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.