lil php help
•
22 Sep 2011, 19:23
•
Journals
could anyone write for me a preg_match function or eregi which'll be looking for
<div style="font-size: 23px; font-weight: bold; text-align: center;">17°C</div>
and writing it to some variable? Ofcourse every few hours the temperature will change. Im 2 lazy to learn regular expressions syntax :x
<div style="font-size: 23px; font-weight: bold; text-align: center;">17°C</div>
and writing it to some variable? Ofcourse every few hours the temperature will change. Im 2 lazy to learn regular expressions syntax :x
You wanna get the temperature to string with preg_match/ereg?
tbh,I learned regular calculating like half year ago.
As I can remeber.
a-Z alpha to upercase
abcdfsgajsl own numbers/letters
^2 must start with it.
0-9 numbers
..
$deg = (int) $deg;
php is haxx language, so HAXX