Re: [PHP] solution
Paulo-WORK wrote: I have reached a solution for my problem with js. Following all the sugestions and using jquery turned out to be quite simple. using .ide( ) and .show( ) i am able to change the #div with Js enabled content and no js. So defining with css for example: #main{display:none;} #main_nojs{display:block;} if js is enabled on load Jquery will .hide( #min_nojs) and -.show(#main) if is off #main is already defined as display:none and #main_nojs as display:block. Paulo Carvalho Here's how some others solved the problem. http://thedailywtf.com/articles/bulletproof-javascript-detection.aspx I took out all my money (both cents) and put it under my mattress ;D Mike Wright -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Array differences
Ashley M. Kirchner wrote: $array1 = array(1, 2, 3, 4, 5, 6); $array2 = array(1, 3, 2, 8, 9); $diff1 = array_diff($array1, $array2); $diff2 = array_diff($array2, $array1); $result = array_unique(array_merge($diff1, $diff2)); => (4, 5, 6, 8, 9) Hi Ash, Isn't the array_unique() unnecessary? Mike -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php