You can't write PHP inside a particle. You have to use TWIG or create and external class that can be used in TWIG.
The following users have thanked you: Ayyoub Ajmi
- Please search forums before posting. Please make sure your post includes the version of the CMS you are using and a link to the problem. Annotations on screenshots can also be helpful to explain problems/goals. Please use the "secure" tab for confidential information.