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
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
POST# 371
Posted On: Fri Feb 29, 2008 12:01 pm
edwino85
Topic: 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


No Repies
(0) Comments for How To Put Or Add Text Data At Beginning Of String PHP Begining Insert

What do you think?

* name:  

* email:  

* Please enter comments:


Receive Replies on my Comments
(An email will be sent to you when someone replies to your comments)

Add image to comments
yes no             upload