¡@

Home 

php Programming Glossary: getrandomgreeting

Is this correct object oriented programing in php? [closed]

http://stackoverflow.com/questions/5329664/is-this-correct-object-oriented-programing-in-php

reading from the property e.g. when you do public function getRandomGreeting this shuffleGreetings return this getGreeting a developer will.. echo hi getGreeting for example Hello John echo hi getRandomGreeting for example Hi John echo hi getGreeting for example Howdy John.. that doesnt change the property e.g. public function getRandomGreeting randomKey array_rand this greetings return this greetings randomKey..