Skip to content

Instantly share code, notes, and snippets.

@kraizt
Created April 7, 2017 07:02
Show Gist options
  • Save kraizt/ea98251939c5955fe8e4c6e1285286f3 to your computer and use it in GitHub Desktop.
Save kraizt/ea98251939c5955fe8e4c6e1285286f3 to your computer and use it in GitHub Desktop.
<?php
$input_one = ['Ricky Andika Putra', 'Ramadani', 'Asep Dadang Supriadi', 'Akmal Fuady', 'Yandi Fitriyanto'];
$input_two = ['Ricky Andika Putra', 'Yandi Fitriyanto', 'Muhammad Sholeh', 'Yadi Cahyadi'];
array_slice($input_two, 2);
$result = array_merge($input_one, $input_two);
print_r($result);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment