Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $fruits = "Apple";
- $fruits1 = array('Orange','Dragonfruit','Grape');
- array_push($fruits1,$fruits);
- print_r($fruits1); exit();
- ?>
- #HASIL RUNNING
- Array (
- [0] => Orange
- [1] => Dragonfruit
- [2] => Grape
- [3] => Apple
- )
Advertisement
Add Comment
Please, Sign In to add comment