Results 1 to 3 of 3

Thread: Help with basic string/variable stuff.

  1. #1
    Join Date
    Mar 2006
    Posts
    600
    Thanks
    5
    Thanked 4 Times in 4 Posts

    Default Help with basic string/variable stuff.

    I have this code here:

    PHP Code:
    <?php
    $Do_Not_Want
    "Do Not Show This.";
    $I_Want "Show This.";

    //Code goes here to make $Do_Not_Want appear as $I_Want. So another words,
    //when i put echo "$Do_Not_Want";  , the $I_Want varible actually shows in the browser saying "Show This.".

    echo "$Do_Not_Want";
    ?>
    The question is in the code. i will paste it below also:

    Code goes here to make $Do_Not_Want appear as $I_Want. So another words,
    when i put echo "$Do_Not_Want"; , the $I_Want varible actually shows in the browser saying "Show This.".

  2. #2
    Join Date
    May 2006
    Location
    Sydney, Australia - Near the coast.
    Posts
    1,995
    Thanks
    0
    Thanked 8 Times in 7 Posts

    Default

    PHP Code:
    $Do_Not_Want $I_want
    ?
    Last edited by tech_support; 01-15-2007 at 02:08 AM.
    Peter - alotofstuffhere[dot]com - Email Me - Donate via PayPal - Got spare hardware? Donate 'em to me :) Just send me a PM.
    Currently: enjoying the early holidays :)
    Read before posting: FAQ | What you CAN'T do with JavaScript | Form Rules | Thread Title Naming Guide

  3. #3
    Join Date
    Mar 2006
    Posts
    600
    Thanks
    5
    Thanked 4 Times in 4 Posts

    Default

    dang i feel stupid.
    thanks man i'll try that out.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •