Solved

PHP unset element in Array

Posted on 2013-02-04
2
300 Views
Last Modified: 2013-02-04
$Row = mysql_fetch_row($Results);
...   utilize singularly $Row[0], then dispense with it so i can use implode on the remaining ...            
unset($Row[0]);
print_r($Row);

result still includes $Row[0]   -  please advise how to "delete" Row[0]
( i tried array_shift and others)

Array ( [0] => 45083 [1] => 45083 [2] => 7164 [3] => xxx@yahoo.com [4] => 2015-12-15  ... )
0
Comment
Question by:willsherwood
2 Comments
 
LVL 83

Accepted Solution

by:
Dave Baldwin earned 500 total points
ID: 38853404
unset($Row[0]); works fine here on a row from mysql and on a plain array.  There must be something else going on.  You'll have to post more of your code.
0
 

Author Closing Comment

by:willsherwood
ID: 38853444
your encouragement helped me find it!
thanks
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
MySQL Grouping 2 25
php construct 5 15
Do you need to unset the session variable after CSRF token check passes? 2 15
hasing a url 16 8
Build an array called $myWeek which will hold the array elements Today, Yesterday and then builds up the rest of the week by the name of the day going back 1 week.   (CODE) (CODE) Then you just need to pass your date to the function. If i…
#Citrix #Internet Explorer #Enterprise Mode #IE 11 #IE 8
Google currently has a new report that is in beta and coming soon to Webmaster Tool accounts. This Micro Tutorial will highlight new features for Google Webmaster Tools.
How to create a custom search shortcut to site-search Experts Exchange using Google in the Firefox browser. This eliminates the need to type out site:experts-exchange.com whenever you want to search the site. Launch your Bookmark Menu: Press 'Ctrl +…

863 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now