Write Algorithm To Insert Element Into Array Php Format