Everybody uses double quotes, from the people at PHP.net to some people who make big open-source projects. But why? Its MUCH slower, and using single quotes in more professional. Why doesn't everybody use single quotes?
Just wondering. Sorry if this is off-topic.
Since PHP can't compute anything with large numbers, and my server doesn't have GMP installed, I made a few quick functions that can add, multiply, and find the factorials of large numbers.
With my function, the exact value of 51! can be evaluated in 3 seconds.
Of course, since I rushed...
I recently made a site in PHP and MySQL where you can, with a valid code, add a poll with 2-5 choices. Your poll is added automatically, and everybody can vote on it.
I have three tables:
-Codes (Stores valid codes)
-Polls (Stores the questions, information about who added the poll, and the...
$$name[1] = 2;
// This will set a variable with a name of $name[1] to 2. But, I want to do this:
$($name)[1] = 2;
// I want it to make the variable to be an array. I know I can use $$name = array(), but that's not very dynamic.
Thanks!
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.