[PHP] sorting an array of objects
Hi, Is it possible to sort a class array using array multisort, I have two items in each class that I wish to sort by, one is a text and the other is the first item in an array within within each class. i.e.;- $class[$index]-text; $class[$index]-array[0]; how can I do this? thanks in advance lee -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] changing post variable names
Hi, I have a php page that accepts post values (ie; ./page.php?var1=0var4=5). Now there can be posted values between var(1) and var(10) and i want to check if they exist and also utilise them. Is there a way of accessing these values in a loop ie;- for($i=1;$i=10;$i++){ // do things in here that access the vars like this $blah = $var$i; } thanks lee -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] post problems
Hi, I am using post to pass information to a php script ie;- www/mypage.phtml?var=3 on the page that is being passed the data i am testing for the occurence of var with;- if($var)... this is generating a warning if var is not passed to the page, as I do not always want to pass the data to it, how can i test for the occurence of var and respond to it from within the called page? thanks in advance -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]