Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

transforming string to integer in php

Using intval() and floatval() Function. The intval() and floatval() functions can also be used to convert the string into its corresponding integer and float values respectively. echo floatval ( $num );
Source by www.delftstack.com #
 
PREVIOUS NEXT
Tagged: #transforming #string #integer #php
ADD COMMENT
Topic
Name
1+2 =