PHP gurus please help

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Oracle Porn
    Affiliate
    • Oct 2002
    • 24433

    #1

    PHP gurus please help

    I use <?php echo $line; ?>

    lets say it outputs "Hello you why are you here? YADA YADA YADA"

    now I want to insert something after the first yada how do i do that?

    thanks


  • BradM
    Confirmed User
    • Dec 2003
    • 3397

    #2
    $var.'<br>some stuff here';

    Comment

    • fris
      Too lazy to set a custom title
      • Aug 2002
      • 55679

      #3
      insert a <br/>
      Since 1999: 69 Adult Industry awards for Best Hosting Company and professional excellence.

      Comment

      • SpaProd
        Confirmed User
        • Jan 2007
        • 150

        #4
        I believe this is what you are looking for: http://tinyurl.com/y8l6ubd

        s/YADA/YADA Blah blah blah/

        use link for exact setup

        Redhead Smut

        Comment

        • Oracle Porn
          Affiliate
          • Oct 2002
          • 24433

          #5
          so

          <?php echo $line.'</br>insert text'; ?>

          and insert another <br/> after the yada input? did I get it right?


          Comment

          • woj
            <&(©¿©)&>
            • Jul 2002
            • 47882

            #6
            need to edit the line where $line is set, not where it's echoed out..
            Custom Software Development, email: woj#at#wojfun#.#com to discuss details or skype: wojl2000 or gchat: wojfun or telegram: wojl2000
            Affiliate program tools: Hosted Galleries Manager Banner Manager Video Manager
            Wordpress Affiliate Plugin Pic/Movie of the Day Fansign Generator Zip Manager

            Comment

            • Oracle Porn
              Affiliate
              • Oct 2002
              • 24433

              #7
              ok so how does it know where to insert the text?


              Comment

              • SpaProd
                Confirmed User
                • Jan 2007
                • 150

                #8
                You need to use search and replace as I stated earlier. Change "YADA" to "YADA <br> or wtf you want"

                Redhead Smut

                Comment

                Working...