Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

string to int php

method_1:
  intval($string);//for string to integer
  floatval($string); //for string to float

method_2:
	$int = (int)$string;//string to int
	$float = (float)$string;//string to float
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #string #int #php
ADD COMMENT
Topic
Name
1+9 =