Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

cast string to int php

$num = "3.14"; 
$int = (int)$num;//string to int
$float = (float)$num;//string to float
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #cast #string #int #php
ADD COMMENT
Topic
Name
8+1 =