Posts tagged with “code”



mysqldump -u root -p db_name > dbdump.sql

some tinkering

March 18th, 2008 / Tags: mysql, code / Trackback

tar -X .svn|_notes -cvf *

via @barce

March 6th, 2008 / Tags: code / Trackback

SF PHP Meetup Mar 2008 - Zend Framework 1.5--Latest Features

In this talk, ZF’s development manager (Wil Sinclair) and Zend chief evangelist (Bradford Cottel) will present the new features and benefits of this free & open-source web framework for PHP programmers and tell you enough to get you started if you’re new to it or to answer some of your questions if you’re already using it. BTW, it’s the only PHP framework to have been selected as a finalist for the Jolt Award for Libraries, Frameworks, and Components. In future meetings, we may be able to get Brad and/or Wil to come back and talk about Zend’s other development tools too and how they work with ZF.

What
SF PHP Meetup Mar 2008 - Zend Framework 1.5--Latest Features
Where
CNET
When
Thu, March 6 2008 at 7PM11PM Download ICS File
More info
php.meetup.com/139/calendar/7147178/
February 20th, 2008 / Tags: event, php, code / Trackback

Find all the values of a key in an array

This is a recursive PHP function that searches all of the keys in an array and pulls out their values.

function multi_array_key_search($needle,$haystack,$keys_found=array()){
	if(is_array($haystack)){
		foreach($haystack as $key=>$val){
			if(is_array($val)){
				$keys_found = multi_array_key_search($needle,$val,$keys_found);
			}else{
				if($key==$needle){
					$keys_found[] = $val;
				}
			}
		}
		return $keys_found;
	}
	return false;
}

February 15th, 2008 / Tags: code, php / Trackback
Next →