How To Put Or Add Text Data At Beginning Of String PHP Begining Insert



How To Put Or Add Text Data At Beginning Of String PHP Begining Insert
How To Put Or Add Text Data At Beginning Of String PHP Begining Insert
Post Description:
Post Tags: how, to, put, or, add, text, data, at, beginning, of, string, php, begining, insert
This Post Has Been Viewed 1472 Times Since Sun Jan 07, 2007 3:40 am Posted By edwino85 with 0 replies
How To Put Or Add Text Data At Beginning Of String PHP Begining Insert
the other way i was trying to find a way to add put data at the beginning of a string (letters or numbers in a sentence), today i found the answer.

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;
?>


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;
?>


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     [ dejar commentarios ]
  * Name     [nombre]

  * eMail (will not be published)     [coreo electronico]

* Enter Your Reply or Comments:    [commentarios]


Add Picture To Comments         [incluir foto]
YES NO             upload
Receive Replies on my Comments (An email will be sent to you when someone replies to your comments)

     

Comments and replies About How To Put Or Add Text Data At Beginning Of String PHP Begining Insert




(0) Comments