Prev RichText |
ExcelExplorer Manual |
Next Phonetic |
 |
(ExcelExplorer 4.0)
Returns whether asian phonetic data found for the string.
boolean IsPhonetic( )
Parameters
- None
Description
Returns TRUE if string contains asian phonetic data, FALSE otherwise.
Note that if you plan to display or do some other processing on the asian phonetic data
you can compare returned value of Phonetic() method with FALSE (see examples below).
But if you only need to get information about asian phonetic data presence this method is faster alternative.
Print info about asian phonetic data presence or do some processing
<?php
// Just print information - do not need phonetic data itself
echo 'Phonetic data is ';
echo $ee->Cell(0,1,1)->Data()->IsPhonetic() ? 'present' : 'absent';
?>
<?php
$ph = $ee->Cell(0,1,1)->Data()->Phonetic();
if( !$ph ) {
// no phonetic data found
} else {
// do something with data
}
?>
|