I have the following code:
$tiempo= shell_exec(" curl -o /dev/null -w 'Conexión: %{time_connect} FB: % {time_starttransfer} Tiempo Total: %{time_total} \n' " . $dominio);
echo "<br>";
echo "Tiempos de carga: ". $tiempo;
$conexion=;
$FB=;
$TTotal=;
But I need a regular expression that puts every number of the variable $tiempo
in each variable, it takes it out with the following format:
Connection: 0.000 FB: 0.000 Total Time: 0.060
And I'm trying something similar to a regular expression like this:
\FB: [0-9]
But it does not work properly for me, if someone can help me out. Thanks.