SolrQuery::setExplainOther

(PECL solr >= 0.9.2) Sets the explainOther common query parameter public SolrQuery SolrQuery::setExplainOther ( string $query ) Sets the explainOther common query parameter Parameters: query The Lucene query to identify a set of documents Returns: Returns the current SolrQuery object, if the return value is used.

Objects and references

Examples: References and Objects One of the key-points of PHP 5 OOP that is often mentioned is that "objects are passed by references by default". This is not completely true. This section rectifies that general thought using some examples. A PHP reference is an alias, which allows two different variables to write to the same value. As of PHP 5, an object variable doesn't contain the object itself as value anymore. It only contains an object identifier which allows o

Imagick::getImageChannelStatistics

(PECL imagick 2.0.0) Returns statistics for each channel in the image array Imagick::getImageChannelStatistics ( void ) Returns statistics for each channel in the image. The statistics include the channel depth, its minima and maxima, the mean, and the standard deviation. You can access the red channel mean, for example, like this: Returns: Returns TRUE on success.

ncurses_ungetmouse

(PHP 4 >= 4.2.0, PHP 5 < 5.3.0, PECL ncurses >= 1.0.0) Pushes mouse event to queue bool ncurses_ungetmouse ( array $mevent ) Pushes a KEY_MOUSE event onto the input queue and associates with this event the given state data and screen-relative character cell coordinates, specified in mevent. Parameters: mevent An associative array specifying the event options: "

geoip_country_code_by_name

(PECL geoip >= 0.2.0) Get the two letter country code string geoip_country_code_by_name ( string $hostname ) The geoip_country_code_by_name() function will return the two letter country code corresponding to a hostname or an IP address. Parameters: hostname The hostname or IP address whose location is to be looked-up. Returns: Returns the two

SAMConnection::peekAll

(PECL sam >= 0.2.0) Read one or more messages from a queue without removing it from the queue. array SAMConnection::peekAll ( string $target [, array $properties ] ) Parameters: target The identity of the queue from which messages should be peeked. properties An optional associative array of properties describing other parameters to

maxdb_get_server_version

(PECL maxdb >= 1.0) Returns the version of the MaxDB server as an integer int maxdb_get_server_version ( resource $link ) Procedural style Object oriented style int $maxdb->server_version; The maxdb_get_server_version() function returns the version of the server connected to (represented by the link parameter) as an integer. The form of this version number is main_version * 10000 + minor_version * 100 + sub_version

SWFText::addString

(PHP 5 <= 5.3.0, PECL ming SVN) Draws a string void SWFText::addString ( string $string ) swftext::addstring() draws the string string at the current pen (cursor) location. Pen is at the baseline of the text; i.e., ascending text is in the -y direction. Returns: No value is returned. This function is EXPERIMENTAL. The behaviour of this function, its name, a

SolrQuery::setHighlightRequireFieldMatch

(PECL solr >= 0.9.2) Require field matching during highlighting public SolrQuery SolrQuery::setHighlightRequireFieldMatch ( bool $flag ) If TRUE, then a field will only be highlighted if the query matched in this particular field. This will only work if SolrQuery::setHighlightUsePhraseHighlighter() was set to TRUE Parameters: flag TRUE or FALSE Retu

maxdb_get_metadata

(PECL maxdb 1.0) Alias of maxdb_stmt_result_metadata() This function is an alias of: maxdb_stmt_result_metadata(). This function alias is deprecated and only exists for backwards compatibility reasons. The use of this function is not recommended, as it may be removed from PHP in the future.