Object and Array Interaction
Table of contents
Member Access
Access properties or methods of an object using the . operator.
userName = user.name;
loginCount = user.logins.count();
Array Access
Access elements of an array using square brackets [].
firstUser = users_list[0];
secondUser = users_list[1];
Function Calls
Call functions or methods with arguments. Be careful what functions do you provide by the whitelist.
echo 'Hello World!'; // echo is provided as script functionality
user.hasPermission('admin'); // Calling a method on an object
echo strtoupper('foo') // Calling a global function (if exposed)