|
Шаблон в PHP????
|
|||
---|---|---|---|
#18+
Люди!!! Помогите!!! есть ШТМЛКа в ней несколько строчек повторяются типа: <td>12345....</td> <td>12345....</td> <td>12345....</td> <td>12345....</td> <td>12345....</td> Можно в PHP сделать типа А="<td>12345...." B="</td>" и писать (А)привет(В) (А)как жысь(В) (А)...(В) ... |
|||
:
Нравится:
Не нравится:
|
|||
06.08.2003, 15:27 |
|
Шаблон в PHP????
|
|||
---|---|---|---|
#18+
Надо по моему сделать так Код: plaintext 1.
и писать, конкатенируя строки Код: plaintext
... |
|||
:
Нравится:
Не нравится:
|
|||
07.08.2003, 07:57 |
|
Шаблон в PHP????
|
|||
---|---|---|---|
#18+
ну вот, хотел выделить жирненьким - не прокатило.. :-(( последнюю строчку надо читать так Код: plaintext
... |
|||
:
Нравится:
Не нравится:
|
|||
07.08.2003, 09:19 |
|
Шаблон в PHP????
|
|||
---|---|---|---|
#18+
Что-то не получилось :( кто нибудь пришлите номер аси чтобы я мог потерриризировать вопросиками :) GAIR@narod.ru ... |
|||
:
Нравится:
Не нравится:
|
|||
07.08.2003, 12:05 |
|
Шаблон в PHP????
|
|||
---|---|---|---|
#18+
все воможно .... eval (unknown) eval -- Evaluate a string as PHP code Description mixed eval (string code_str) eval() evaluates the string given in code_str as PHP code. Among other things, this can be useful for storing code in a database text field for later execution. There are some factors to keep in mind when using eval(). Remember that the string passed must be valid PHP code, including things like terminating statements with a semicolon so the parser doesn't die on the line after the eval(), and properly escaping things in code_str. Also remember that variables given values under eval() will retain these values in the main script afterwards. A return statement will terminate the evaluation of the string immediatley. In PHP4 you may use return to return a value that will become the result of the eval() function while in PHP3 eval() was of type void and did never return anything. Example 1. Eval() example - simple text merge <?php $string = 'cup'; $name = 'coffee'; $str = 'This is a $string with my $name in it.<br>'; echo $str; eval ("\$str = \"$str\";"); echo $str; ?> The above example will show: This is a $string with my $name in it. This is a cup with my coffee in it. ... |
|||
:
Нравится:
Не нравится:
|
|||
07.08.2003, 18:46 |
|
|
start [/forum/topic.php?fid=23&fpage=529&tid=1480492]: |
0ms |
get settings: |
8ms |
get forum list: |
12ms |
check forum access: |
3ms |
check topic access: |
3ms |
track hit: |
66ms |
get topic data: |
11ms |
get forum data: |
2ms |
get page messages: |
40ms |
get tp. blocked users: |
2ms |
others: | 11ms |
total: | 158ms |
0 / 0 |