Function 1 : array_rand Get a random variable in an array. $sites = array (“google.com”,”Bing”, “yahoo.com”, “php.net”, “apple.com”); $k = array_rand($sites); echo $sites[$k]; Function 2:…
Leave a CommentTutorials focused on Web Development, ReactJS, JavaScript, PHP, Database Design, Devops
Function 1 : array_rand Get a random variable in an array. $sites = array (“google.com”,”Bing”, “yahoo.com”, “php.net”, “apple.com”); $k = array_rand($sites); echo $sites[$k]; Function 2:…
Leave a Comment
How to Comment Your PHP Code?
PHP allows three different methods of formatting comments. Comments are generally known as single line and multiple line Comments.A comment in PHP code is a…