Well, you can use the intval() function from PHP, example :
var $strings = intval('100');
Also check the PHP docs from http://php.net/docs.php
On 16 Feb, 16:56, lenin kumar <[email protected]> wrote:
> dear all,
>
> i am new to cakePHP please help me to solve my issue
>
> i am inserting some value to database as per rule i created table name
> values
> in table i created a field named phone number int after inserting, saw
> the database
> there is some default value starting from 24etc.. after changing the
> field to vachar
> it started to working fine, getting proper value in database ,
>
> my question is how can i convert , and where should i write staring
> to int
>
> Please help me !!
Check out the new CakePHP Questions site http://cakeqs.org and help others with
their CakePHP related questions.
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected] For more options, visit this group at
http://groups.google.com/group/cake-php?hl=en