clonefish logo

getValue() method

<?php
  function getValue( $fieldname, $addslashes )
?>

Gets the value of an element and adds slashes using addslashes() if needed. This performs the same as the code below:

$element = $clonefish->getElementByName('fieldname');
$value   = $element->getValue( 1 );
For an explanation on the $addslashes parameter, see getElementValues(), and if you'd like to read more on handling quotes, check the Features section!