php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #785 Initalisation of variables with long strings
Submitted: 1998-09-25 03:40 UTC Modified: 1998-09-25 06:44 UTC
From: mb at mbit dot de Assigned:
Status: Closed Package: Feature/Change Request
PHP Version: 3.0.4 OS: linux
Private report: No CVE-ID: None
 [1998-09-25 03:40 UTC] mb at mbit dot de
E.g. you have to write a long sql-query-string, I think you have to write something like the following when you do not want to get lines with x00 characters:

$Query = "select Price, Date, Number, Id";
$Query = $Query." from Articles where";
$Query = $Query." Description like 'Bike%'";

It would be nice when you also can write that instead:

$Query = "select Price, Date, Number, Id"
         " from Articles where Description like 'Bike%'";

  - Or is it already possible? -


Matthias

P.S.: PHP is great

Patches

Pull Requests

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Dec 26 14:01:30 2024 UTC