Hi,I need to call a function within a function in a amfphp class I want to call the generateRandStr method in the listMusic() but can't figure out how to do it.
PHP Code:
<?php
class Audio{
function listMusic(){
$activationKey = Audio->generateRandStr(50);
}
/** * generateRandStr - Generates a string made up of randomized * letters (lower and upper case) and digits, the length * is a specified parameter. */ private static function generateRandStr($length) { $randstr = ""; for($i = 0; $i < $length; $i ++) { $randnum = mt_rand ( 0, 61 ); if ($randnum < 10) { $randstr .= chr ( $randnum + 48 ); } else if ($randnum < 36) { $randstr .= chr ( $randnum + 55 ); } else { $randstr .= chr ( $randnum + 61 ); } } return $randstr; }