|
Как взять часть строки?
|
|||
---|---|---|---|
#18+
У меня есть строка, в ней записано "2003". Как мне сделать, чтоб вместо "2003" было "03". Хелп, а то у меня под вечер уже соображалка не работает.... Zeta ... |
|||
:
Нравится:
Не нравится:
|
|||
19.10.2003, 18:26 |
|
Как взять часть строки?
|
|||
---|---|---|---|
#18+
string substr (string string, int start [, int length]) Substr returns the portion of string specified by the start and length parameters. If start is positive, the returned string will start at the start'th character of string. $rest = substr ("2003", 2, 2); // returns "03" Felix ... |
|||
:
Нравится:
Не нравится:
|
|||
19.10.2003, 18:35 |
|
Как взять часть строки?
|
|||
---|---|---|---|
#18+
да не за что.... пришлось пошевелить и самому мозгами... а то отупею скоро... Felix ... |
|||
:
Нравится:
Не нравится:
|
|||
19.10.2003, 18:55 |
|
|
start [/forum/topic.php?fid=23&fpage=525&tid=1480329]: |
0ms |
get settings: |
9ms |
get forum list: |
13ms |
check forum access: |
3ms |
check topic access: |
3ms |
track hit: |
67ms |
get topic data: |
10ms |
get forum data: |
2ms |
get page messages: |
42ms |
get tp. blocked users: |
2ms |
others: | 246ms |
total: | 397ms |
0 / 0 |