Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

convert string to int php

s = "123";
echo intval(s); // 123

s = "hello";
echo intval(s);	//0
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #convert #string #int #php
ADD COMMENT
Topic
Name
2+7 =