#1
  1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Feb 2000
    Posts
    10
    Rep Power
    0
    You used to be able to get to the value part of an array element using

    $array[value]

    with no problems etc. My ISP has moved to PHP4 now, & I get warnings like:

    Warning: Use of undefined constant value - assumed 'value' in .... on line 23

    Has this changed in PHP4? How do I turn off the warnings?

    Many thanks
  2. #2
  3. No Profile Picture
    Viper_SB
    Guest
    Devshed Newbie (0 - 499 posts)
    You might have to declare the array before adding anything to it. And you'll get that if nothing in it. (correct me if I'm worng)

    As for turning it off I think if you put @ in front it should show nothing.

    ------------------
    Viper_SB
  4. #3
  5. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Feb 2000
    Posts
    10
    Rep Power
    0
    <BLOCKQUOTE><font size="1" face="Verdana,Arial,Helvetica">quote:</font><HR>You might have to declare the array before adding anything to it.[/quote]

    OK Thanks I'll try that

    <BLOCKQUOTE><font size="1" face="Verdana,Arial,Helvetica">quote:</font><HR>As for turning it off I think if you put @ in front it should show nothing..[/quote]

    Can you expand on this please?
    Put an @ in front of what?

    Thanks again

  6. #4
  7. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2000
    Location
    Gig Harbor, Washington, USA
    Posts
    29
    Rep Power
    0
    Mr. Newbie trying to help I am pretty sure this turns off errors:
    <BLOCKQUOTE><font size="1" face="Verdana,Arial,Helvetica">code:</font><HR><pre>
    @$errorless = "Bwahahaha!! No errors can stop me now!";
    [/code]

    I may be an idiot though.

    ------------------
    chris swanicke
    swanicke@defected.net

Similar Threads

  1. Replies: 12
    Last Post: February 21st, 2009, 06:24 AM
  2. Multi-dimentional Array
    By rahulroy in forum PHP Development
    Replies: 1
    Last Post: March 31st, 2003, 12:15 PM
  3. xslt is enabled but i get blank pages
    By eemo in forum XML Programming
    Replies: 4
    Last Post: September 23rd, 2002, 05:00 AM
  4. PHP4+mod_SSL +Apache +linux +SYBASE
    By tek in forum PHP Development
    Replies: 1
    Last Post: September 8th, 2000, 03:05 PM

IMN logo majestic logo threadwatch logo seochat tools logo