Answers for "how to append string to an array in php"

PHP
5

php add item to array

<?php
  $z = ['me','you', 'he'];
  array_push($z, 'she', 'it');
  print_r($z);
?>
Posted by: Guest on June-02-2020

Code answers related to "how to append string to an array in php"

Browse Popular Code Answers by Language