- Output for 7.4.0 - 7.4.33, 8.0.1 - 8.0.30, 8.1.0 - 8.1.29, 8.2.0 - 8.2.20, 8.3.0 - 8.3.8
- float(0.9) float(100) float(100.1) float(1000)
<?php
$tests = [
'Paid a bill £0.90',
'Paid a bill £100',
'Paid a bill £100.10',
'Paid a bill £1000'
];
foreach ($tests as $test) {
var_dump(sscanf($test, '%*[^£]£%f')[0]);
echo "\n";
}