Forums

Test variable for empty string vs " " (1 post)

  1. vestaviascott
    Member
    Posted 2 years ago #

    I need to test a variable to determine if it contains either zero length or actual characters and not empty space, like " ".

    Currently I'm evaluating it like so...

    if($mytextarea !==""){doNothing();}else{doSomething();}

    But it fails to indicate if the text area merely has empty spaces...

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.