Post thumbnail of How to push pop shift and unshift arrays in bash
18 November 2010
Continue reading How to push pop shift and unshift arrays in bash

How to push pop shift and unshift arrays in bash

Since you can’t really pass pointers or references to arrays and you can’t return anything other than integers, here’s how to implement push, pop, shift, and unshift in a bash shell script. I don’t know if this already exists in bash, but I couldn’t find it and I needed a data structure in a hurry.

Post thumbnail of How to pass multiple post array variables in PHP
6 August 2009
Continue reading How to pass multiple post array variables in PHP

How to pass multiple post array variables in PHP

Now when go.php loads, you can check to see if there’s anything in the post_arr, and if there is, cycle through the array and store all the elements. I couldn’t find a working example of this just by googling. It seemed like tons of people would ask for this, but any responses on forums would be, “well what are you really trying to do”. So here it is.

Powered by Wordpress   |   Lunated designed by ZenVerse