Hyvor Developer
Home
Download
Copy
Code
<?php $string = '10 Animals'; $numberOfAnimals = (int) $string; echo $numberOfAnimals;
Result