SyntaxFix
Write A Post
Hire A Developer
Questions
You can simply use the following:
$intVal = 5; $strVal = trim($intVal);