Solved

PHP unset element in Array

Posted on 2013-02-04
2
297 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 82

Accepted Solution

by:
Dave Baldwin earned 500 total points
Comment Utility
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
Comment Utility
your encouragement helped me find it!
thanks
0

Featured Post

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

Today, still in the boom of Apple, PC's and products, nearly 50% of the computer users use Windows as graphical operating systems. If you are among those users who love windows, but are grappling to keep the system's hard drive optimized, then you s…
This article discusses how to create an extensible mechanism for linked drop downs.
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…

743 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

18 Experts available now in Live!

Get 1:1 Help Now