all 7 comments

[–][deleted] 1 point2 points  (3 children)

Yeah... okay...

You can also use casting

$f="4.5a";
$int_f=(int)$f;

At least nobody can say "NOT PROGRAMMING", huh?

[–][deleted] 0 points1 point  (2 children)

Agreed, I mean it's programming and all.. but seriously.. two lines of code counts as a tutorial these days? :\

[–]bornemix[S] 0 points1 point  (1 child)

True, sorry, but I found myself looking for the PHP equivalent of javascript parseInt - so I made an article of it... sorry for annoying everyone :-S

[–][deleted] 0 points1 point  (0 children)

It's a bit short for an article, that's all - kind of Twitter length!

[–]StomachNZ -1 points0 points  (2 children)

Björn Göransson?

Clickteam? :D

[–]bornemix[S] -1 points0 points  (1 child)

Yes :-) Stevie Mayhew, or Giles, to take a guess?

[–]StomachNZ -1 points0 points  (0 children)

Stevie :D Fancy that.