Menu
Home
Recent Posts
Showing posts with label
unset
.
Show all posts
Showing posts with label
unset
.
Show all 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
)
}
Read More
Older Posts
Home
Subscribe to:
Posts (Atom)
Development and programming answers
Search articles
Popular Posts
Angular JS: How to pass variables between controllers
One way to share variables across multiple controllers is to create a service and inject it in any controller where you want to use it. S...
Objective-C: How to make UIText move up when keyboard is visible
With the iPhone SDK: I have a UIView with UITextFields that brings up a keyboard. I need it to be able to: Allow scrolling of the c...
Objective-C: How to check if a string contains another script
To check if a string ( NSString ) contains another small string this is the code: NSString * string = @ "hello bla bla" ; if ...
iOS: performSelector may cause a leak because its selector is unknown
Here's what I'm doing: [ _controller performSelector : NSSelectorFromString (@ "someMethod" )]; The solution for this e...