Skip to content

Tag: object

How do I add a new key value pair to an object in PHP?

I guess my question is two-fold In Python if I do this I’ve created a dictionary In javaScript if I do the same thing I’ve created an object What is that in PHP? It could just be that I don’t know the terms I’m working on a project with laravel. I basically have an sqlite database whic…

PHP method scope binding

I am confused by how PHP call method in parent-children hierarchy. Here is the code class A { private function foo() { echo “A!”; } public function test() { …