Forums

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

  1. vestaviascott
    Member
    Posted 2 weeks 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...

Reply

You must log in to post.

About this Topic

Tags

No tags yet.