"green", "red", "b" => "green", "blue", "red" ); $result = array_unique ( $input ); // print_r($result); // print_r($input); $a = array (); $b = $a; $b ['foo'] = 42; // var_dump($a); function testFun() { echo "in testFun"; } $call = "testFun"; echo " vorher "; $call (); echo " nachher "; $unit1 = new Unit (); $unit1->setUnitID ( 1 ); $unit1->setUnitKind ( "foo" ); // echo $unit1->toString(); // echo $unit1->toString(); // $url = parse_url("http://127.0.0.1/ggbn_portal/index.php/search/showRecord" ); // $url = // parse_url("http://127.0.0.1/ggbn_portal/index.php/search/showRecord?tripleidstoreid=12026&a=b"); $url = parse_url ( "bar/foo?bar=baz" ); print_r ( $url ); echo "host + path: " . $url ['host'] . $url ['path']; if (isset ( $url ['host'] )) { echo "yes"; echo $url ['schema']; } // $fp = fsockopen($url['host'].$url['path'], 80, $errno, $error, 20 ); $fp = fsockopen ( "www.bahn.de", 80, $errno, $error, 20 ); echo "test url:"; if ($fp) { echo "host: " . $url ['host'] . " "; echo "fp: " . $fp . " "; echo "errno: " . $errno . " "; echo "error: " . $error . " "; } else echo "no!!!"; $real = realpath ( ".." ); echo "real: " . $real; ?>