Авторизация
 Регистрация   Войти   Забыли пароль? 

String Concatenation

:: English Support Forums :: PHP-Fusion Coding Coding Style :: String Concatenation
Admin  Распечатать сообщение

Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in E:\OpenServer\domains\php-fusion.vveb.ws\includes\bbcodes\mail_bbcode_include.php on line 20

Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in E:\OpenServer\domains\php-fusion.vveb.ws\includes\bbcodes\mail_bbcode_include.php on line 21

Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in E:\OpenServer\domains\php-fusion.vveb.ws\includes\bbcodes\search_bbcode_include.php on line 39

String Concatenation
PHP-Fusion Coding Style PHP-Fusion version 7.02.00



Strings must be concatenated using the "." operator. A space must never be added before or amer
the ".":
Загрузить источник  PHP
  1. <?php
  2.  $company = "PHP- Fusion"."Solutions";
  3. ?>

It is not necessary concatenaEng strings with the "." operator when breaking a the statement into
mulEple line. In these cases, each successive line should be padded with white space such that the
start of the new line is aligned under or passed the "=" operator:
Загрузить источник  PHP
  1. <?php
  2.  $sql = "SELECT user_id, user_name FROM ".DB_USERS."
  3.   WHERE user_level = '103'
  4.   ORDER BY user_name ASC";
  5. ?>

  Опубликовано 04.06.2013 21:04:47 
 Перейти на форум:   
HTML-code and BB-code for blogs and forums

<a href="https://php-fusion.vveb.ws/forum/viewthread.php?thread_id=156">String Concatenation : String Concatenation</a>


[url=https://php-fusion.vveb.ws/forum/viewthread.php?thread_id=156]String Concatenation : String Concatenation[/url]

Голосования
Как Вы предпочитаете покупать ссылки ?
Всего голосов : 3
Перейти в ветку