Jump to content
Sign in to follow this  
Aktonius

execute vs number?

Recommended Posts

Would you use

$a = Number($string) + Number($string2)

or

$a = Execute($string+$string2)

I have alot of the first case(using number) and wonder is it really worth it that i convert it to execute?

Share this post


Link to post
Share on other sites

Would you use

$a = Number($string) + Number($string2)

or

$a = Execute($string+$string2)

I have alot of the first case(using number) and wonder is it really worth it that i convert it to execute?

$a = $string + $string2

Unless it came from some strangly formatted source!


Share this post


Link to post
Share on other sites

Think the Helpfile shows a pretty simple example to explain that...no? :)

I believe i am missing something since i dont see whats the diff

from example:

$a=1
$v=Execute("$a+1")  ; $v is set to 2

with

$v = $a + 1

?

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...