<?php
function getTopcheckSupportTeam()
{
return [
0 => [
'name' => 'Akin',
'surname' => 'A',
'face' => 'email_face_akin.png'
],
1 => [
'name' => 'Ore',
'surname' => 'A',
'face' => 'email_face_ore.png'
],
2 => [
'name' => 'Tomiwa',
'surname' => 'A',
'face' => 'email_face_tomiwa.png'
]
];
}
function getRandomSupportGuy()
{
$team = self::getTopcheckSupportTeam();
return $team[rand(0, $team . length)];
}
print_r(getRandomSupportGuy());
- Output for 7.0.0 - 7.0.2
- Fatal error: Cannot use "self" when no class scope is active in /in/XbkNX on line 25
Process exited with code 255. - Output for 5.5.24 - 5.5.31, 5.6.8 - 5.6.17
- Fatal error: Cannot access self:: when no class scope is active in /in/XbkNX on line 25
Process exited with code 255.
preferences:
177.04 ms | 1395 KiB | 28 Q