Solved

PHP unset element in Array

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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

In threads here at EE, each comment has a unique Identifier (ID). It is easy to get the full path for an ID via the right-click context menu. However, we often want to post a short link within a thread rather than the full link. This article shows a…
Many old projects have bad code, but the budget doesn't exist to rewrite the codebase. You can update this code to be safer by introducing contemporary input validation, sanitation, and safer database queries.
This Micro Tutorial will demonstrate how to add subdomains to your content reports. This can be very importing in having a site with multiple subdomains.
This Micro Tutorial will demonstrate how nuggets on the Web are formatted by using Chrome Developer Tools. These tools would not only view the site's CSS but it can also modify it and save the CSS to use on your own site.

763 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