How To Put or Add Text Data At Beginning of String PHP Begining Insert
RegisterLogin
How To Put or Add Text Data At Beginning of String PHP Begining Insert
Post Description: How To Put or Add Text Data At Beginning of String PHP Begining Insert
Tags: How, To, Put, or, Add, Text, Data, At, Beginning, of, String, PHP, Begining, Insert
This Post Was Posted On Feb 29, 2008 By edwino85 #1212
Post Description: How To Put or Add Text Data At Beginning of String PHP Begining Insert
Tags: How, To, Put, or, Add, Text, Data, At, Beginning, of, String, PHP, Begining, Insert
This Post Was Posted On Feb 29, 2008 By edwino85 #1212
How To Put or Add Text Data At Beginning of String PHP Begining Insert by edwino85
There is not PHP function I could find, but the answer is very simple.
Let say for example i have a string with the value of "PHP Hosting At Webune.com" this is how the code would look like:
Code:
<?php
$string = "PHP Hosting At Webune.com";
echo $string;
?>
$string = "PHP Hosting At Webune.com";
echo $string;
?>
and this would be the ouput of the php code:
Code:
PHP Hosting At Webune.com
But, lets say i want to add the word "Free" at the begining of the $string.
well to do that, all i have to do is this:
Code:
<?php
$string.="Free ";
$string.= "PHP Hosting At Webune.com";
echo $string;
?>
$string.="Free ";
$string.= "PHP Hosting At Webune.com";
echo $string;
?>
The output would look like this:
Code:
Free PHP Hosting At Webune.com
Hope this helps. If you want to learn more about PHP, check out our post in this forums, you can learn alot. If you don't have PHP in our site yet, visit our friends at http://www.webune.com to sign up with one of their popular PHP plans.
Wallpaperama Team
Any questions, please replay to this post.
Quote:
infront, at the begining, in-front, begin, start, starting, fonts, puting, doing, adding, ad, ading, insert text, insterting, script, scripting, code, hosting, hacks, programming, program, programing, language, learn, learning, howto, teach, me, show, display, produce, reporduc,e substitute, replace, admit, cut in, drag in, embed, enter, fill in, imbed, implant, include, infix, infuse, inject, inlay, insinuate, instill, intercalate, interject, interlope, interpolate, interpose, introduce, intrude, lug in, obtrude, place, pop in, root, set, shoehorn*, shove in, squeeze in, stick, work in, worm in, base, embed, establish, fix, found, implant, insert, set up, settle, bury, deposit, dig in, drive in, enclose, fasten, fix, hammer in, impact, infix, ingrain, inlay, insert, install, lodge, pierce, plant, plunge, press, put into, ram in, root, set, sink, stick in, stuff in, thrust in, tuck in, access, arrive, barge in*, blow in*, break in, breeze in*, burst in, bust in*, butt in*, come, come in, crack, crawl, creep, crowd in*, drive in, drop in, fall into, gain entree, get in, go in, horn in*, immigrate, infiltrate, ingress, insert, insinuate, introduce, intrude, invade, jump in, make way, move in, pass into, penetrate, pierce, pile in, pop in*, probe, rush in, slip, sneak, work in, worm in*, wriggle, admit, docket, inject, inscribe, insert, intercalate, interpolate, introduce, list, log, note, post, put in, register, set down, take down
Leave Your Comments
Related Pages: [Add Your Website]
Post New Topic
Nick
#5213 1
<strong>cool</strong>
May 21, 2011 Reply Report abuse
©2011 Webune Forums - Tue Dec 20, 2011 9:06 am
Powered by: Webune Forums V3
Powered by: Webune Forums V3