Report abuse

<?php
/**
 * Determine whether someone is saved according to algorithm defined in Romans 10:9 (Christian Bible, NCV)
 *
 * Scriptural reference: http://read.ly/Rom10.9.NCV
 * 
 * Inspired by a much less accurate version: http://www.cafepress.ca/+ash_grey_tshirt_romans_109_php,25860943
 *
 * @param object $person Person object. Maybe we can use Genesis to define all its properties and methods.
 * @return boolean True if $person is saved, false if they are not.
 */
function is_saved($person) {

	/**
	 * Prepare our variables
	 */
	$claims_jesus_is_lord = '';
	$believes_in_zombie_jesus = '';

	/**
	 * Check whether they have declared that Jesus is Lord
	 */
	$oral_declarations = $person->get_oral_decalarations();
	if (in_array('Jesus is Lord', $oral_declarations))
		$claims_jesus_is_lord = true;

	/**
	 * Check whether they believe in their heart that Jesus was raised from the dead
	 */
	$coronary_beliefs = $person->get_coronary_beliefs();
	if (in_array('God raised Jesus from the dead', $coronary_beliefs))
		$believes_in_zombie_jesus = true;

	/**
	 * Make sure they are doing both
	 */
	if ( $claims_jesus_is_lord AND $believes_in_zombie_jesus )
		return true;
	else
		return false;
}
?>