Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

PHP Smarty cast String to Int

Posted on 2013-06-04
3
Medium Priority
?
1,921 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 111

Accepted Solution

by:
Ray Paseur earned 2000 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 111

Expert Comment

by:Ray Paseur
ID: 39218790
;-)

Thanks for the points, ~Ray
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

These days socially coordinated efforts have turned into a critical requirement for enterprises.
This article discusses how to implement server side field validation and display customized error messages to the client.
The purpose of this video is to demonstrate how to set up the WordPress backend so that each page automatically generates a Mailchimp signup form in the sidebar. This will be demonstrated using a Windows 8 PC. Tools Used are Photoshop, Awesome…
The viewer will learn how to dynamically set the form action using jQuery.
Suggested Courses

972 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