Weblog

How to remove an element from an array

Posted on: May 17th, 2007 | Category: PHP

Soo, I’m learning more and more php these days and today I stumbled onto a problem, which I couldn’t solve myself.

How do you remove an element from an array in php?

After a quick google search I found this:

foreach($array as $key => $value) {
          if($value == "" || $value == " " || is_null($value)) {
                    unset($array[$key]);
          }
}
/*
and if you want to create a new array with the keys reordered accordingly
*/
$new_array = array_values($array);

Tnx to Scriptygoddess

This works okay, but I’m wondering if this is the best/quickest way to remove an element from an array?

And isn’t there a built-in function in php that does the same thing?

On PS3, Spiderman and logo’s

Posted on: April 18th, 2007 | Category: Design, playstation 3, sony, spiderman

While working on a Spiderman 3 graphic today, I discovered that the font used for the new Playstation 3 logo is exactly the same as the Spiderman font (for Spiderman 3 they fiddled with the font a little though).

Apparantly it was the wish of Sony Computer Entertainment’s CEO, Ken Kutaragi.

“If you really look at the PS3 contour carefully, it is rounded when viewing the console in profile. Rather than creating a typography with all the risks that entails, it was wiser to use the one from Spider-Man, for which Sony has the rights.

“It was also the wish of President Kutaragi, who insisted that I use this typography. In fact, the logo was one of the first elements he decided on and the logo may have been the motivating force behind the shape of PS3.”

For two such strong brands, the idea of using the exact same fonts is just ridiculous.

You see kids… this is why managers and CE-whatevers should stay far, far away from design.

New server update

Posted on: April 14th, 2007 | Category: Algemeen

And yet another update today!

The move to the new server seems to have went well and the upgrade from WordPress 2.0.7 to 2.1.3 went smooth as a baby’s bottom.

I guess it’s time to create that all new *sparkling* theme for my new site.

And more updates

Posted on: April 14th, 2007 | Category: Algemeen

And if you can read this, than the upgrade from WordPress 1.5.2 to WordPress 2.0.7 went okay.

Now that this is over and done with, it’s time to move to the new server and upgrade to WordPress 2.1!

Upgrade in progress…

Posted on: April 14th, 2007 | Category: Algemeen, Site, Wordpress

If you can read this, then the upgrade from WordPress 1.2.1 (Yes, this installation was that old actually) to WordPress 1.5.2 has been completed and everything works as supposed to be.

Stay tuned, mmore updates coming…

Linkypoo 20 mei 2005

Posted on: May 20th, 2005 | Category: Web, Xhtml/Css

A musical ba… eh… muzikale estaf… confused

Posted on: May 18th, 2005 | Category: Algemeen, Music, Web

Van Egor kreeg ik ook de ‘Musical baton’ die de ronde doet door de blogosphere.

Eh…. ja….

Een klein half jaar geleden kreeg ik al eens precies dezelfde estafette toegestuurd. Leuk om te zien hoe alles nu weer terugkomt.

Aangezien ik hem toen al ingevuld heb, ga ik het niet nog een keertje doen en ik ga hem ook niet verder doorsturen, want dat heb ik toen ook al gedaan. No offense Egor ;)

Linkypoo 18 mei 2005

Posted on: May 18th, 2005 | Category: Design, Linkdump, Web

Linkypoo 17 mei 2005

Posted on: May 17th, 2005 | Category: Xhtml/Css

Linkypoo 13 mei 2005

Posted on: May 13th, 2005 | Category: Linkdump, Software, Xhtml/Css