tag:blogger.com,1999:blog-42896428544397183252024-02-20T02:06:53.509-08:00 free codemohamedhttp://www.blogger.com/profile/10777120375017074692noreply@blogger.comBlogger2125tag:blogger.com,1999:blog-4289642854439718325.post-56345264915298577452017-01-23T15:32:00.002-08:002017-01-23T15:38:35.535-08:00PHP String Functions<div dir="rtl" style="text-align: right;" trbidi="on">
<h3 style="background-color: white; box-sizing: inherit; text-align: right;">
</h3>
<h3 style="background-color: white; box-sizing: inherit; text-align: right;">
<span style="font-family: "verdana" , sans-serif;"><span style="font-size: 15px;">PHP String Functions</span></span></h3>
<div>
<span style="font-family: "verdana" , sans-serif;"><span style="font-size: 15px;"><br /></span></span></div>
<div>
<br /></div>
<div>
<div style="background-color: white; box-sizing: inherit; font-family: Verdana, sans-serif; font-size: 15px; text-align: start;">
In this chapter we will look at some commonly used functions to manipulate strings.</div>
</div>
<h2 style="background-color: white; box-sizing: inherit; font-family: "Segoe UI", Arial, sans-serif; font-size: 30px; font-weight: 400; margin: 10px 0px; text-align: start;">
Get The Length of a String</h2>
<div>
<div style="background-color: white; box-sizing: inherit; font-family: Verdana, sans-serif; font-size: 15px; text-align: start;">
The PHP strlen() function returns the length of a string.</div>
<div style="background-color: white; box-sizing: inherit; font-family: Verdana, sans-serif; font-size: 15px; text-align: start;">
The example below returns the length of the string "Hello world!":</div>
<div style="background-color: white; box-sizing: inherit; font-family: Verdana, sans-serif; font-size: 15px; text-align: start;">
<br /></div>
<div style="background-color: white; box-sizing: inherit; font-family: Verdana, sans-serif; font-size: 15px; text-align: start;">
<br /></div>
<h3 style="box-sizing: inherit; font-family: "Segoe UI", Arial, sans-serif; font-size: 24px; font-weight: 400; margin: 10px 0px; text-align: start;">
Example</h3>
</div>
<div>
<br /></div>
<div>
<br /></div>
<div>
<span style="box-sizing: border-box; color: brown; font-family: "consolas" , "courier new" , monospace; font-size: 15px;"><span style="box-sizing: border-box; color: mediumblue;"><</span>!DOCTYPE<span style="box-sizing: border-box; color: red;"> html</span><span style="box-sizing: border-box; color: mediumblue;">></span></span></div>
<div>
<span style="box-sizing: border-box; color: brown; font-family: "consolas" , "courier new" , monospace; font-size: 15px;"><span style="box-sizing: border-box; color: mediumblue;"><</span>html<span style="box-sizing: border-box; color: mediumblue;">></span></span><br />
<span style="box-sizing: border-box; color: brown; font-family: "consolas" , "courier new" , monospace; font-size: 15px;"><span style="box-sizing: border-box; color: mediumblue;"><</span>body<span style="box-sizing: border-box; color: mediumblue;">></span></span><br />
<br style="box-sizing: border-box; font-family: consolas, "courier new", monospace; font-size: 15px; text-align: start;" />
<span style="box-sizing: border-box; font-family: "consolas" , "courier new" , monospace; font-size: 15px;"><span style="box-sizing: border-box; color: red;"><?php</span><br style="box-sizing: border-box;" /><span style="box-sizing: border-box; color: mediumblue;">echo</span> strlen(<span style="box-sizing: border-box; color: brown;">"Hello world!"</span>);<br style="box-sizing: border-box;" /><span style="box-sizing: border-box; color: red;">?></span></span><span style="background-color: white; font-family: "consolas" , "courier new" , monospace; font-size: 15px;"> </span><br />
<br />
<span style="box-sizing: border-box; color: brown; font-family: "consolas" , "courier new" , monospace; font-size: 15px;"><span style="box-sizing: border-box; color: mediumblue;"><</span>/body<span style="box-sizing: border-box; color: mediumblue;">></span></span><br />
<span style="box-sizing: border-box; color: brown; font-family: "consolas" , "courier new" , monospace; font-size: 15px;"><span style="box-sizing: border-box; color: mediumblue;"><</span>/html<span style="box-sizing: border-box; color: mediumblue;">></span></span></div>
</div>
mohamedhttp://www.blogger.com/profile/10777120375017074692noreply@blogger.com0tag:blogger.com,1999:blog-4289642854439718325.post-23539129541513687012017-01-23T15:20:00.001-08:002017-01-23T15:42:14.423-08:00Easy Learning with "Show PHP"<div dir="rtl" style="text-align: right;" trbidi="on">
<h2 style="background-color: white; box-sizing: inherit; font-family: "Segoe UI", Arial, sans-serif; font-size: 30px; font-weight: 400; margin: 10px 0px; text-align: start;">
Easy Learning with "Show PHP"</h2>
<div>
<div style="background-color: white; box-sizing: inherit; font-family: Verdana, sans-serif; font-size: 15px; text-align: start;">
Our "Show PHP" tool makes it easy to learn PHP, it shows both the PHP source code and the HTML output of the code.</div>
<div style="background-color: white; box-sizing: inherit; font-family: Verdana, sans-serif; font-size: 15px; text-align: start;">
<br /></div>
<div style="background-color: white; box-sizing: inherit; font-family: Verdana, sans-serif; font-size: 15px; text-align: start;">
<br /></div>
<div style="background-color: white; box-sizing: inherit; font-family: Verdana, sans-serif; font-size: 15px; text-align: start;">
<br /></div>
<h3 style="box-sizing: inherit; font-family: "Segoe UI", Arial, sans-serif; font-size: 24px; font-weight: 400; margin: 10px 0px; text-align: start;">
Example</h3>
<div class=" " id="textareacontainer" style="box-sizing: border-box; float: left; font-family: Verdana, sans-serif; font-size: 15px; height: 632px; text-align: start; width: 720px;">
<div class=" " id="textarea" style="box-sizing: border-box; height: 632px; padding: 1px 5px 10px 10px; width: 720px;">
<div id="textareawrapper" style="background-color: white; box-shadow: rgba(0, 0, 0, 0.117647) 0px 1px 3px, rgba(0, 0, 0, 0.239216) 0px 1px 2px; box-sizing: border-box; height: 621px; position: relative; width: 705px;">
<div id="textareaCode" style="border: none; box-sizing: border-box; font-family: consolas, "courier new", monospace; height: 621px; line-height: normal; overflow: auto; padding: 8px; resize: none; width: 705px; word-wrap: break-word;">
<span style="box-sizing: border-box; color: brown;"><span style="box-sizing: border-box; color: mediumblue;"><</span>!DOCTYPE<span style="box-sizing: border-box; color: red;"> html</span><span style="box-sizing: border-box; color: mediumblue;">></span></span><br />
<span style="box-sizing: border-box; color: brown;"><span style="box-sizing: border-box; color: mediumblue;"><</span>html<span style="box-sizing: border-box; color: mediumblue;">></span></span><br />
<span style="box-sizing: border-box; color: brown;"><span style="box-sizing: border-box; color: mediumblue;"><</span>body<span style="box-sizing: border-box; color: mediumblue;">></span></span><br />
<br style="box-sizing: border-box;" />
<span style="box-sizing: border-box;"><span style="box-sizing: border-box; color: red;"><?php</span><br style="box-sizing: border-box;" /><span style="box-sizing: border-box; color: mediumblue;">echo</span> <span style="box-sizing: border-box; color: brown;">"My first PHP script!"</span>;<br style="box-sizing: border-box;" /><span style="box-sizing: border-box; color: red;">?></span></span><br />
<br style="box-sizing: border-box;" />
<span style="box-sizing: border-box; color: brown;"><span style="box-sizing: border-box; color: mediumblue;"><</span>/body<span style="box-sizing: border-box; color: mediumblue;">></span></span><br />
<span style="box-sizing: border-box; color: brown;"><span style="box-sizing: border-box; color: mediumblue;"><</span>/html<span style="box-sizing: border-box; color: mediumblue;">></span></span></div>
</div>
</div>
</div>
<div class=" " id="iframecontainer" style="box-sizing: border-box; float: left; font-family: Verdana, sans-serif; font-size: 15px; height: 632px; text-align: start; width: 720px;">
<div class=" " id="iframe" style="box-sizing: border-box; height: 632px; padding: 1px 10px 10px 5px; width: 720px;">
</div>
</div>
</div>
</div>
mohamedhttp://www.blogger.com/profile/10777120375017074692noreply@blogger.com0