Документация PHP


get_defined_vars

gettype

Variable handling Функции

PHP Manual


get_resource_type

(PHP 4 >= 4.0.2, PHP 5)

get_resource_type — Returns the resource type

Описание

string get_resource_type ( resource $handle )

This function gets the type of the given resource.

Список параметров

handle

The evaluated resource handle.

Возвращаемые значения

If the given handle is a resource, this function will return a string representing its type. If the type is not identified by this function, the return value will be the string Unknown.

This function will return FALSE and generate an error if handle is not a resource.

Примеры

Пример #1 get_resource_type() example

<?php
// prints: mysql link
$c mysql_connect();
echo 
get_resource_type($c) . "\n";

// prints: file
$fp fopen("foo""w");
echo 
get_resource_type($fp) . "\n";

// prints: domxml document
$doc new_xmldoc("1.0");
echo 
get_resource_type($doc->doc) . "\n";
?>


get_defined_vars

gettype

Variable handling Функции

PHP Manual

SAPE все усложнил?

MainLink - простая и прибыльная продажа ссылок!

Последние поступления:

Размещена 10 августа 2020 года

Я по ТВ видел, что через 10 лет мы будем жить лучше, чем в Германии...
Я не понял, что это они с Германией сделать хотят?!

читать далее…

ТехЗадание на Землю

Размещена 14 марта 2018 года

Пpоект Genesis (из коpпоpативной пеpеписки)

читать далее…

Шпаргалка по работе с Vim

Размещена 05 декабря 2017 года

Vim довольно мощный редактор, но работа с ним не всегда наглядна.
Например если нужно отредактировать какой-то файл например при помощи crontab, без знания специфики работы с viv никак.

читать далее…

Ошибка: Error: Cannot find a valid baseurl for repo

Размещена 13 сентабря 2017 года

Если возникает ошибка на centos 5 вида
YumRepo Error: All mirror URLs are not using ftp, http[s] or file.
Eg. Invalid release/

читать далее…

Linux Optimization

Размещена 30 июля 2012 года

Prelink

читать далее…