Now is not the time to install PHP!
There is PHP interpreter available at lab computers.
You may have php installed locally or run using an online sandbox (onlinephp.io, onecompiler.com, ... ).
Copy content PHP code. Add code so the file can be executed and produce the desired output.
The objective is to implement a simple class for a shopping cart.
Do not be afraid of the magic, __toString.
Copy PHP code. Add code so the file can be executed and produce the desired output. The objectives are:
Copy PHP code. Add code so the file can be executed and produce the desired output.
The objective is to provide a user of the User class with the ability to save the class content into a JSON and a string. Implement the Writer interface and create writer for String and JSON. Implement a factory method (createWriter) for those classes.
You may need json_encode.
Extend existing PHP code. Modify code so the file can be executed and produce the desired output.
The objective is to monitor invocation of class methods.
Let's get real, we can do better. The proxy implementation has several issues:
Time to be fancy. Here is the PHP code, you already know what to do.