PHP Smarty cast String to Int

Hi

How do you cast a variable string to an Int through Smarty?
is_numericAsked:
Who is Participating?
 
Ray PaseurConnect With a Mentor Commented:
I think you would not use Smarty -- you would just use PHP.
http://php.net/manual/en/language.types.integer.php
0
 
is_numericAuthor Commented:
Agreed

I have just implemented that very solution but will award you with a correct answer
0
 
Ray PaseurCommented:
;-)

Thanks for the points, ~Ray
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.