Return to Snippet

Revision: 10586
at January 5, 2009 09:42 by sveggiani


Initial Code
// name:		evFirstParagraph
// version:		v0.2
// description:		extrae el primer párrafo de una cadena dada

function evFirstParagraph( $paragraph ) {

	$firs_par = explode( '</p>', $paragraph );
	$firs_par_output = strip_tags( $firs_par[0] );

	return( $firs_par_output );

}

Initial URL

                                

Initial Description

                                

Initial Title
evFirstParagraph | extracts first HTML paragraph from a string

Initial Tags

                                

Initial Language
PHP