Last active
April 10, 2020 02:47
-
-
Save ihzarizkyk/7f76fc1989e71f9ae0227ef652eb53ba to your computer and use it in GitHub Desktop.
Return PHP
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
//Return adalah fungsi dari PHP untuk mengembalikan nilai ke Variabel itu sendiri | |
//Contoh : | |
function mobil(){ | |
$mobil = "Ford,Alphard,Toyota,Honda Jazz"; | |
return $mobil; | |
} | |
echo mobil(); | |
// OutPut : Ford,Alphard,Toyota,Honda Jazz | |
mobil(); | |
//Output : Kosong | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment