PHP | ReflectionExtension isPersistent() Function
The ReflectionExtension::isPersistent() function is an inbuilt function in PHP which is used to return true if the specified extension is persistent, otherwise return false.
Syntax:
void ReflectionExtension::isPersistent( void )
Parameters: This function does not accept any parameter.
Return Value: This function returns true if the specified extension is persistent, otherwise return false.
Below programs illustrate the ReflectionExtension::isPersistent() function in PHP:
Program_1:
<?php
$A = 'DOM' ;
$extension = new ReflectionExtension( $A );
$B = $extension ->isPersistent();
var_dump( $B );
?>
|
Program_2:
<?php
$extension = new ReflectionExtension( 'xml' );
var_dump( $extension ->isPersistent());
?>
|
Reference: https://www.php.net/manual/en/reflectionextension.ispersistent.php
Last Updated :
13 Dec, 2019
Like Article
Save Article
Share your thoughts in the comments
Please Login to comment...