Posts by Edvaldo Szymonek • 68 points
2 posts
-
1
votes2
answers226
viewsQ: How to construct this regular expression?
I’m trying to build a regular expression and it’s a little difficult. I would like you to help me, and if possible explain how the computer works in relation to this expression that I am asking for.…
-
4
votes2
answers198
viewsA: How can I do a validation to check if a variable is empty and is a string in php
Saul, you can also create a function <?php function emptyAndString(&$var) { $var = trim($var); return empty($var) && is_string($var); } $v = 'Valor'; var_dump(emptyAndString($v)); //…