Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $arr=array( 0=>"NO",1=>"YES",2=>"MAYBE");
- foreach($arr as $k=>$v) {
- $arr[$k+1]="SURE";
- echo "$v\n<br>";
- }
- ?><hr><?php
- foreach($arr as $k=>$v) {
- echo "$v\n<br>";
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement