Issue
For example;
"Real Madrid" -> false
"Barcelona " -> true
with what functions can I solve this in laravel?
Solution
you can use
$result = explode(' ', trim("barcelona "));
print_r($result);
trim will remove all white space at the beginning and the end of your string
Answered By - Florent Cardot
0 Comments:
Post a Comment
Note: Only a member of this blog may post a comment.