View Single Post
Old 01-29-2013, 10:50 PM   PM User | #3
groog
New Coder

 
Join Date: Jun 2007
Posts: 62
Thanks: 0
Thanked 0 Times in 0 Posts
groog is an unknown quantity at this point
I got it figured out...

PHP Code:
<?php
        
class A
        
{
                function 
__toString(){return "A";}
        }

        
$Class 'A';
        
$Instance = new $Class();
        echo 
$Instance;
        echo 
"No Error";
?>
Though it's really dumb in my opinion if a string is treated like a simple data type.

Quote:
Originally Posted by Fou-Lu View Post
Now this all said, for what reason do you need to issue an alter command? Typically speaking, with the exception of installation process, you shouldn't need to ever issue a CREATE, DROP or ALTER SQL command in a project.
You haven't worked on anything big enough or spanning multiple systems/servers.
groog is offline   Reply With Quote