$arr = array(\"one\", \"two\", \"three\"); help($arr);function help($args) { foreach ($args as $arg) { echo $arg . \"\n\"; }}
help2(\"one\", \"two\", \"three\");function help2() { foreach( func_get_args() as $arg) { echo $arg . \"\n\"; }}
<?phpif( $_SERVER['HTTP_HOST'] == 'www.domain1.com') { header( 'Location: ../1' );}if( $_SERVER['HTTP_HOST'] == 'www.domain2.com') { header( 'Location: ../2' );}?>
<?php//Define function hereredirect('www.domain1.com','../1');redirect('www.domain2.com','../2');?>
So i define the function help() and use help(heart,blood,ab) to call it
Or you can access the list of passed variables using fung_get_args().
This is what I have so far
I want to set it up so I don't need these wasted instructions. Something like this because I will have alot of domains.
BTW i know I cannot use redirect, but i'm not very creative atm. :D