note 39687 added to language.types.string

From: Date: Sat, 07 Feb 2004 15:43:11 +0000
Subject: note 39687 added to language.types.string
Groups: php.notes 
Request: Send a blank email to php-notes+get-64775@lists.php.net to get a copy of this message
Is there a possibility to convert a string like "10*500" (parsed from a XML-File) to a float? When i try to store this String in a float variable it only coverts the "10" but nothing after the "*"-sign, but i need the result of this expresison... Is there a function to calculate such string expressions? Thanx... ---- Manual Page -- http://www.php.net/manual/en/language.types.string.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+39687 Delete -- http://master.php.net/manage/user-notes.php?action=delete+39687&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+39687&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#64775) next »