Toggle navigation
Home
Latest pastes
FAQ
Random
Register
Login
Delete the last element of an array:
SUBMITTED BY:
henry1874w
DATE:
June 25, 2017, 2:32 p.m.
FORMAT:
Text only
SIZE:
72 Bytes
Raw
Download
Tweet
HITS:
244
Go to comments
Report
<?php
$a=array("red","green","blue");
array_pop($a);
print_r($a);
?>
Please enable JavaScript to view the
comments powered by Disqus.
comments powered by
Disqus