Menu
Home
Recent Posts
How to: Delete an element from Array PHP
8:24 AM
0
Share
You can use
unset
<?
php $x
=
array
(
1
,
2
);
unset
(
$x
[
0
]);
var_dump
(
$x
);
?>
This is the output:
array
(
1
)
{
[
1
]=>
int
(
2
)
}
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
Development and programming answers
Search articles
Popular Posts
HTML Best Practices: HREF attribute for JavaScript link # or javascript:void(0)
<a href = "#" onclick = " myJsFunc (); " > Run JavaScript Code </a> <a href = "javascript:void(0...
SyntaxError: invalid syntax: Print Phyton 3
In previous versions of phyton 3 print used to be used like this: Python 3.0 . 1 ( r301 : 69561 , Feb 13 2009 , 20 : 04 : 18 ) [ MS...
How to: Preload images with jQuery
Quick and easy solution: function preload ( arrayOfImages ) { $ ( arrayOfImages ). each ( function (){ $ ( '<img/...
How to: Make asyncronous call to file with PHP
make_request ( 'http://www.externalsite.com/script1.php?variable=45' ); //example usage $output = make_request ( 'http://ww...
How to solve: Parse error: syntax error, unexpected T_XXX
This happens when you have T_XXX token in unexpected place, unbalanced (superfluous) parentheses, use of short tag without activating it in ...
No comments:
Post a Comment