PageRenderTime 40ms CodeModel.GetById 18ms RepoModel.GetById 0ms app.codeStats 0ms

/class5/strlen.php

https://github.com/rogermle/codervox
PHP | 12 lines | 8 code | 3 blank | 1 comment | 1 complexity | a712adf0ad23d9b058b6e64dd92a7cdf MD5 | raw file
  1. <?php
  2. $myString = 'string';
  3. echo strlen($myString);
  4. $name = 'Bob';
  5. if ( strlen($name) >= 2)
  6. {
  7. //Proceed in validating
  8. echo "Valid Name!";
  9. }