Ok this seems like a stupid question that I should certainly know the answer to, but I’ve got some weird behavior where the constructor of one of my classes checks to see if a table exists, if not it creates it.
The strange thing is when the table doesn’t exist, if the constructor is called multiple times then it doesn’t see the table that should have been created on the first constructor call.
Are all function calls synchronous in PHP?
For example:
f1();
f2();
Does the interpreter wait for f1() to return before calling f2()?
Yes, even if
f1()kicks off other asynchronous tasks.