WCM Forum

WCM Forum (http://www.wcm.at/forum/index.php)
-   Programmierung (http://www.wcm.at/forum/forumdisplay.php?f=17)
-   -   PHP split prob (http://www.wcm.at/forum/showthread.php?t=134801)

Nightman 20.05.2004 17:58

PHP split prob
 
Hi an alle

ich will eine url splitten aber es geht ned

PHP-Code:

<?
$ServerURL 
"www.chello.at";

echo 
$ServerURL "
"
;

$SplitServerURL split('.',$ServerURL);
$SplitServerURL1 $SplitServerURL[0];
$SplitServerURL2 $SplitServerURL[1];
$SplitServerURL3 $SplitServerURL[2];
echo 
$SplitServerURL1 "%" $SplitServerURL2 "%" $SplitServerURL3;
?>

also ich bekomm immer nur %% im quelltext

wenn ich aber
PHP-Code:

$SplitServerURL split('.',$ServerURL); 

auf
PHP-Code:

$SplitServerURL split('n',$ServerURL); 

ändere splittet er richtig

wie kann ich das umgehen bzw trotzdem splitten beim punkt?

THX

Potassium 20.05.2004 18:13

$SplitServerURL = split('\.',$ServerURL);

Nightman 20.05.2004 20:43

super thx geht


Alle Zeitangaben in WEZ +2. Es ist jetzt 20:08 Uhr.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
© 2009 FSL Verlag