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:
Comments (Atom)
Development and programming answers
Search articles
Popular Posts
Libraries: Best authentication library for codelgniter
It turns out, the russian developer Ilya Konyukhov picked up the gauntlet after reading this and created a new auth library for CI based on ...
PHP: Curly braces strings usage
They're used to escape variable expressions. From Strings : Complex (curly) syntax This isn't called complex because the syntax i...
PHP: Convert SVG image to PNG
$usmap = '/path/to/blank/us-map.svg' ; $im = new Imagick (); $svg = file_get_contents ( $usmap ); /*loop to color each stat...
PHP: Save HTML5 canvas as an image in a server
Here is an example how to achieve what you need: 1) Draw something (taken from canvas tutorial ) <canvas id = "myCanvas" ...
PHP: What is Output Buffering
Output Buffering for Web Developers, a Beginner’s Guide: Without output buffering (the default), your HTML is sent to the browser in piec...