From:             vandor at freestart dot hu
Operating system: All
PHP version:      6CVS-2006-07-01 (CVS)
PHP Bug Type:     Feature/Change Request
Bug description:  new string separator

Description:
------------
This is a feature request:

A new string separator character ie:#, with variable parsing

To write string contains double-quotes and variables have 4 different
solution:
$s = "<p class=\"$class\" id=\"$id\">";
$s = '<p class="'.$class.'" id="'.$id.'">';
$s = <<<HEREDOC
<p class="$class" id="$id"
HEREDOC;
$s = sprintf('<p class="%s" id="%s">', $class, $id);

would suggest a 5th solution:
$s = #<p class="$class" id="$id"#;

Think it would produce cleaner, readable code when write html strings.

The # character used only for example, any may find a better one.


-- 
Edit bug report at http://bugs.php.net/?id=37979&edit=1
-- 
Try a CVS snapshot (PHP 4.4): 
http://bugs.php.net/fix.php?id=37979&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): 
http://bugs.php.net/fix.php?id=37979&r=trysnapshot52
Try a CVS snapshot (PHP 6.0): 
http://bugs.php.net/fix.php?id=37979&r=trysnapshot60
Fixed in CVS:                 http://bugs.php.net/fix.php?id=37979&r=fixedcvs
Fixed in release:             
http://bugs.php.net/fix.php?id=37979&r=alreadyfixed
Need backtrace:               http://bugs.php.net/fix.php?id=37979&r=needtrace
Need Reproduce Script:        http://bugs.php.net/fix.php?id=37979&r=needscript
Try newer version:            http://bugs.php.net/fix.php?id=37979&r=oldversion
Not developer issue:          http://bugs.php.net/fix.php?id=37979&r=support
Expected behavior:            http://bugs.php.net/fix.php?id=37979&r=notwrong
Not enough info:              
http://bugs.php.net/fix.php?id=37979&r=notenoughinfo
Submitted twice:              
http://bugs.php.net/fix.php?id=37979&r=submittedtwice
register_globals:             http://bugs.php.net/fix.php?id=37979&r=globals
PHP 3 support discontinued:   http://bugs.php.net/fix.php?id=37979&r=php3
Daylight Savings:             http://bugs.php.net/fix.php?id=37979&r=dst
IIS Stability:                http://bugs.php.net/fix.php?id=37979&r=isapi
Install GNU Sed:              http://bugs.php.net/fix.php?id=37979&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=37979&r=float
No Zend Extensions:           http://bugs.php.net/fix.php?id=37979&r=nozend
MySQL Configuration Error:    http://bugs.php.net/fix.php?id=37979&r=mysqlcfg

Reply via email to