PHP - Transform String to Integer
I need to transform a String to an Integer.

I will receive Strings like this:

    $string  = "1.70 m";
    $string2 = "2.445 m";

How can I easly transform this strings to:

    $integer1 = 1.70;
    $integer2 = 2.445;

Can someone give me some clues?

Best Regards, 
PHP - Transform String to Integer
===

I need to transform a String to an Integer.

I will receive Strings like this:

    $string  = "1.70 m";
    $string2 = "2.445 m";

How can I easly transform this strings to:

    $integer1 = 1.70;
    $integer2 = 2.445;

Can someone give me some clues?

Best Regards, 