Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $message = ['Good Morning', 'Good Afternoon', 'Good Evening', 'Good Night'];
- $greetingsTo = function($to) use($message){
- return $message[rand(0,count($message)-1)].' '.$to;
- };
- echo $greetingsTo('Tuana Şeyma');
- // Good Morning Tuana Şeyma
- // Good Afternoon Tuana Şeyma
- // Good Evening Tuana Şeyma
- // Good Night Tuana Şeyma
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement