php - How to create integer out of array? -


is possible convert array values 1 single integer. example, have array numbers

$array = array(7,4,7,2); 

is possible integer value 7472 array?

simple use implode as

$array = array(7,4,7,2); echo (int)implode("",$array);// 7472 

Comments

Popular posts from this blog

java - Suppress Jboss version details from HTTP error response -

gridview - Yii2 DataPorivider $totalSum for a column -

Sass watch command compiles .scss files before full sftp upload -