Changes

Jump to: navigation, search

Working with Strings and Text in PHP

11 bytes removed, 20:14, 27 October 2016
m
Text replacement - "<table border="0" cellspacing="0"> " to "<table border="0" cellspacing="0" width="100%">"
<table border="0" cellspacing="0" width="100%"><tr>
<td width="20%">[[PHP Arrays|Previous]]<td align="center">[[PHP Essentials|Table of Contents]]<td width="20%" align="right">[[PHP, Filesystems and File I/O|Next]]</td>
<tr>
<googlehtmlet>BUY_PHPphp</googlehtmlet>
$myString = "This is a short string";
$myArray = explode(" ", $myString);
print_r($myArray);
A case insensitive search and replace can similarly be performed using the ''eregi_replace()'' function which takes the same arguments as ''str_replace()''
<googlehtmlet>BUY_PHP_BOTTOMphp</googlehtmlet>

Navigation menu