Solved

PHP Smarty cast String to Int

Posted on 2013-06-04
3
1,743 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 109

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 109

Expert Comment

by:Ray Paseur
ID: 39218790
;-)

Thanks for the points, ~Ray
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
PHP Query return divisible by 3 3 25
Currency in SQL? 2 29
Redirect 301 from one address  to another 5 25
Row insertion failed. Array 5 45
These days socially coordinated efforts have turned into a critical requirement for enterprises.
This article discusses four methods for overlaying images in a container on a web page
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

789 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