Tools, FAQ, Tutorials:
Assigning a New Character in a String in PHP
How To Assigning a New Character in a String?
✍: FYIcenter.com
The string element expression, $string{index}, can also be used at the left side of an assignment statement. This allows you to assign a new character to any position in a string. Here is a PHP script example:
<?php
$string = 'It\'s Friday?';
echo "$string\n";
$string{11} = '!';
echo "$string\n";
?>
This script will print:
It's Friday? It's Friday!
⇒ Concatenating Two Strings in PHP
⇐ Accessing a Specific Character in String in PHP
2016-10-13, ∼2042🔥, 0💬
Popular Posts:
How to use "json-to-xml" Azure API Policy Statement? The "json-to-xml" Policy Statement allows you t...
How to add request query string Parameters to my Azure API operation 2017 version to make it more us...
How to install "The Windows SDK version 8.1"? I need to build my Visual Studio C++ applications. If ...
dev.FYIcenter.com is a Website for software developer looking for software development technologies,...
How to use the JSON to XML Conversion Tool at utilities-online.info? If you want to try the JSON to ...