PHP 8.5.0 Alpha 1 available for testing

Voting

: three plus five?
(Example: nine)

The Note You're Voting On

rsmith_NOSPAM_ at _NOSPAM_unitec dot ac dot nz
22 years ago
array_merge() will also reindex (see array_merge() manual entry), but the '+' operator won't, so...

<?php
$arrayone
=array("newkey"=>"newvalue") + $arrayone;
?>

does the job.

<< Back to user notes page

To Top