Description
The cpanelprint()
method returns a cPanel variable's value.
Warning:
Despite its name, this method does not print a value.
Note:
To return a hash reference of a cPanel variable's value, use the fetch()
method.
Example
LiveAPI PHP Module
1
2
|
// Retrieve the cPanel account's username. $cpanel ->cpanelprint( '$user' ); |
LiveAPI Perl Module
1
2
|
# Retrieve the cPanel account's username. $cpliveapi ->cpanelprint( '$user' ); |
Parameters
Parameter |
Type |
Description |
Possible values |
Example |
variable |
string |
A cPanel variable. |
A valid cPanel variable. Surround this variable with single quotes ('') Notes:
|
'$user' |
Returns
This method returns the cPanel variable's value as a string.