Use this:
$var1 = $var2 = "1245";
$var2[1] = "3";
Or:
$var1 = $var2 = '1';
$var1 = $var2 .= '2';
$var1 = $var2 .= '4';
$var1 = $var2 .= '5';
$var2[1] = '3';
More Related Contents:
- PHP generate json – list of categories [closed]
- Regex to find substring inside an html attribute [duplicate]
- unwanted (text) after using include
- How to change the session timeout in PHP?
- Get Specific Columns Using “With()” Function in Laravel Eloquent
- How to create an array for JSON using PHP?
- MySQLi equivalent of mysql_result()?
- How to turn off magic quotes on shared hosting?
- Secure random number generation in PHP
- Update data on a page without refreshing
- PHP session without cookies
- Send JSON data from Javascript to PHP?
- implement LIKE query in PDO
- How to disable XDebug
- Should a MAMP return ::1 as IP on localhost?
- Install Imagick for PHP and Apache on Windows
- Selecting multiple array elements
- “Warning: Cannot modify header information – headers already sent by” error [duplicate]
- How can I get the Subversion revision number in PHP?
- Get filename of file which ran PHP include
- PHP get both array value and array key
- Is there a BigInteger class in PHP?
- how do i parse a csv file to grab the column names first then the rows that relate to it?
- “Password not accepted from server: 535 Incorrect authentication data” when sending with GMail and phpMailer
- How to execute a stored procedure in php using sqlsrv and “?” style parameters
- Eloquent many-to-many-to-many – how to load distant relation easily
- strlen() php function giving the wrong length of unicode characters
- count() emitting an E_WARNING
- How do I convert an ISO8601 date to another format in PHP?
- How to keep leading zeros in PHP integer [duplicate]