Solved

PHP Smarty cast String to Int

Posted on 2013-06-04
3
1,689 Views
Last Modified: 2013-06-04
Hi

How do you cast a variable string to an Int through Smarty?
0
Comment
Question by:is_numeric
  • 2
3 Comments
 
LVL 108

Accepted Solution

by:
Ray Paseur earned 500 total points
ID: 39218782
I think you would not use Smarty -- you would just use PHP.
http://php.net/manual/en/language.types.integer.php
0
 

Author Comment

by:is_numeric
ID: 39218787
Agreed

I have just implemented that very solution but will award you with a correct answer
0
 
LVL 108

Expert Comment

by:Ray Paseur
ID: 39218790
;-)

Thanks for the points, ~Ray
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Developers of all skill levels should learn to use current best practices when developing websites. However many developers, new and old, fall into the trap of using deprecated features because this is what so many tutorials and books tell them to u…
This article discusses four methods for overlaying images in a container on a web page
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.

759 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now