Skip to content

Instantly share code, notes, and snippets.

@oelmekki
Created March 18, 2010 10:36
Show Gist options
  • Save oelmekki/336252 to your computer and use it in GitHub Desktop.
Save oelmekki/336252 to your computer and use it in GitHub Desktop.
<?php
require( dirname( dirname( __FILE__ ) ) . '/lib/sfYaml.php' );
$array = array( 'foo' => 'bar', 'other' => "I'm a bug" );
var_dump( sfYaml::dump( $array ) );
# output :
# string(29) "foo: bar
# other: 'I''m a bug'
# "
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment