[ deimos25 @ 27.11.2005. 00:14 ] @
Ako recimo imam sledecu promenljivu $a="deimos"; kako da napravim promenljivu da ako hocu recimo treci karakter on mi izbaci i za cetvrti m itd. |
[ deimos25 @ 27.11.2005. 00:14 ] @
[ sale83 @ 27.11.2005. 00:38 ] @
Sto nisi malo citao manual???
Zar je to tesko naci ???? $string="deimos"; echo $string{0}; // d echo $string{1}; // e echo $string{2}; // i echo $string{3}; // m echo $string{4}; // o echo $string{5}; // 6 http://php.mirrors.ilisys.com.au/manual/en/function.substr.php Copyright (C) 2001-2025 by www.elitesecurity.org. All rights reserved.
|