What is the get_resource_type function in PHP

JOY PHP

List of resource types

The following list contains functions that create, use and remove PHP resources. The is_resource () function can be used to check whether a variable value is a resource, and the get_resource_type () function can be used to determine the exact type of the resource.

Resource type nameGenerated byUsed byRemoved fromdefinition
AddressInfosocket_addrinfo_lookup ()socket_addrinfo_bind (), socket_addrinfo_connect (), socket_addrinfo_explain (), no AddressInfo (Sockets Extension)
bzip2bzopen ()bzerrno (), bzerror (), bzerrstr (), bzflush (), bzread (), bzwrite ()bzclose ()Bzip2 compressed file
cubrid connectioncubrid_connect () cubrid_connect_with_url ()cubrid_col_get () cubrid_col_size () cubrid_commit () cubrid_drop () cubrid_execute () cubrid_get_autocommit () cubrid_get_charset () cubrid_get_class_name () cubrid_get_db_parameter () cubrid_get_server_info () cubrid_get () cubrid_insert_id () cubrid_is_instance () cubrid_lob_export () cubrid_lob_get () cubrid_lob_send () cubrid_lock_read ( ) cubrid_lock_write () cubrid_prepare () cubrid_put () cubrid_rollback () cubrid_schema () cubrid_seq_drop () cubrid_seq_insert () cubrid_seq_put () cubrid_set_add () cubrid_set_autocommit () () cubrid_ping () cubrid_query () cubrid_real_escape_string () cubrid_lob2_new ()cubrid_close () cubrid_disconnect ()Connection to the CUBRID database
persistent cubrid connectioncubrid_pconnect () cubrid_pconnect_with_url ()cubrid_col_get () cubrid_col_size () cubrid_commit () cubrid_drop () cubrid_execute () cubrid_get_autocommit () cubrid_get_charset () cubrid_get_class_name () cubrid_get_db_parameter () cubrid_get_server_info () cubrid_get () cubrid_insert_id () cubrid_is_instance () cubrid_lob_export () cubrid_lob_get () cubrid_lob_send () cubrid_lock_read ( ) cubrid_lock_write () cubrid_prepare () cubrid_put () cubrid_rollback () cubrid_schema () cubrid_seq_drop () cubrid_seq_insert () cubrid_seq_put () cubrid_set_add () cubrid_set_autocommit () () cubrid_ping () cubrid_query () cubrid_real_escape_string ()Persistent connection to the CUBRID database
cubrid requestcubrid_prepare () cubrid_execute () cubrid_query () cubrid_unbuffered_query ()cubrid_bind () cubrid_column_names () cubrid_column_types () cubrid_current_oid () cubrid_execute () cubrid_free_result () cubrid_get_query_timeout () cubrid_move_cursor () cubrid_next_result () cubrid_num_cols () cubrid_num_rows () cubrid_set_query_timeout () cubrid_data_seek () cubrid_fetch_array () cubrid_fetch_assoc () cubrid_fetch_field () cubrid_fetch_lengths ( ) cubrid_fetch_object () cubrid_fetch_row () cubrid_field_flags () cubrid_field_len () cubrid_field_name () cubrid_field_seek () cubrid_field_table () cubrid_field_type () cubrid_num_fields () cubrid_result () cubrid_lob2_bind ()cubrid_close_prepare () cubrid_close_request ()CUBRID request
cubrid praisecubrid_lob_get ()cubrid_lob_export () cubrid_lob_send () cubrid_lob_size ()cubrid_lob_close () no
cubrid lob2cubrid_lob2_new () cubrid_fetch () cubrid_fetch_row () cubrid_fetch_array () cubrid_fetch_assoc () cubrid_fetch_object ()cubrid_lob2_export () cubrid_lob2_import () cubrid_lob2_read () cubrid_lob2_write () cubrid_lob2_tell () cubrid_lob2_tell64 () cubrid_lob2_seek () cubrid_lob2_seek64 () cubrid_lob2_size () cubrid_lob2_lob2cubrid_lob2_close () no
curlcurl_copy_handle (), curl_init ()curl_copy_handle (), curl_errno (), curl_error (), curl_exec (), curl_getinfo (), curl_setopt ()curl_close ()cURL handle
curl_multicurl_multi_init ()curl_multi_errno (), curl_multi_exec (), curl_multi_info_read (), curl_multi_remove_handle (), curl_multi_select (), curl_multi_setopt ()curl_multi_close ()cURL multi handle
curl_sharecurl_share_init ()curl_share_errno (), curl_share_setopt ()curl_share_close ()cURL share handle
dbadba_open ()dba_delete (), dba_exists (), dba_fetch (), dba_firstkey (), dba_insert (), dba_nextkey (), dba_optimize (), dba_replace (), dba_sync ()dba_close ()Reference to a DBA database
dba persistentdba_popen ()dba_delete (), dba_exists (), dba_fetch (), dba_firstkey (), dba_insert (), dba_nextkey (), dba_optimize (), dba_replace (), dba_sync () no Persistent reference to a DBA database
dbasedbase_open ()dbase_pack (), dbase_add_record (), dbase_replace_record (), dbase_delete_record (), dbase_get_record (), dbase_get_record_with_names (), dbase_numfields (), dbase_numrecords ()dbase_close ()Reference to a Dbase database
dbx_link_objectdbx_connect ()dbx_query ()dbx_close ()dbx connection
dbx_result_objectdbx_query () no dbx result
enchant_brokerenchant_broker_init ()enchant_broker_describe (), enchant_broker_dict_exists (), enchant_broker_get_dict_path (), enchant_broker_get_error (), enchant_broker_list_dicts (), enchant_broker_set_dict_path (), enchant_broker_set_ordering ()enchant_broker_free ()Enchant broker (before PHP 8.0.0)
enchant_dictenchant_broker_request_dict () enchant_broker_request_pwl_dict ()enchant_dict_add_to_personal (), enchant_dict_add_to_session (), enchant_dict_check (), enchant_dict_describe (), enchant_dict_get_error (), enchant_dict_is_in_session (), enchant_dict_store_replacement (), enchant_dict_store_replacement (), enchant_dict_store_replacement (), enchant_dict_describe ()enchant_broker_free_dict ()Enchant dictionary (before PHP 8.0.0)
fbsql linkfbsql_change_user (), fbsql_connect ()fbsql_autocommit () fbsql_blob_size, (), fbsql_clob_size () fbsql_commit () fbsql_change_user () fbsql_create_blob () fbsql_create_db () fbsql_create_clob () fbsql_data_seek () fbsql_database_password () fbsql_database () fbsql_db_query () fbsql_db_status ( ), fbsql_drop_db (), fbsql_errno (), fbsql_error (), fbsql_get_autostart_info (), fbsql_hostname (), fbsql_insert_id (), fbsql_list_dbs (), fbsql_list_dbs (), fbsql_password (fbsqlbs (), fbsql_list_dbs (), fbsql_password (), fbsql_list_dbs (), fbsql_password (), fbsql_list_dbs (), fbsql_password (fqlbect_roll), fbsql_password (fqlobecbs (), fbsql_password (fqlbect_roll), fqdl_password (fqlobect_roll), fbsql_password (fqlbdbs (), fbsql_password (fqlbect_roll), fbsql_password (fqlob_bs), fbsql_password (fqlob_bs fbsql_set_password (), fbsql_set_transaction (), fbsql_start_db (), fbsql_stop_db (), fbsql_username ()fbsql_close ()Reference to an fbsql database
fbsql plinkfbsql_change_user (), fbsql_pconnect ()fbsql_autocommit (), fbsql_change_user (), fbsql_create_db (), fbsql_data_seek (), fbsql_db_query (), fbsql_drop_db (), fbsql_select_db (), fbsql_select_db (), fbsql_select_db (), fbsql_errno (), no Persistent link to an fbsql database
fbsql resultfbsql_db_query (), fbsql_list_dbs (), fbsql_query (), fbsql_list_fields (), fbsql_list_tables (), fbsql_tablename ()fbsql_affected_rows () fbsql_fetch_array () fbsql_fetch_assoc () fbsql_fetch_field () fbsql_fetch_lengths () fbsql_fetch_object () fbsql_fetch_row () fbsql_field_flags () fbsql_field_name () fbsql_field_len () fbsql_field_seek () fbsql_field_table () fbsql_field_type ( ), fbsql_next_result (), fbsql_num_fields (), fbsql_num_rows (), fbsql_result (), fbsql_num_rows ()fbsql_free_result ()fbsql result
fdffdf_open ()fdf_create (), fdf_save (), fdf_get_value (), fdf_set_value (), fdf_next_field_name (), fdf_set_ap (), fdf_set_status (), fdf_get_status (), fdf_set_file (), fdf_set_file (), fdf_get_file (), fdf_get_file (), fdf_set_file (), fdf_get_file (), fdf_set_file (), fdf_get_file () ), fdf_set_javascript_action ()fdf_close ()FDF file
ftpftp_connect (), ftp_ssl_connect ()ftp_login (), ftp_pwd (), ftp_cdup (), ftp_chdir (), ftp_mkdir (), ftp_rmdir (), ftp_nlist (), ftp_rawlist (), ftp_systype (), ftp_pasv (), ftp_get (), ftp_fget (), ftp_fget (), ftp_fget () ), ftp_fput (), ftp_size (), ftp_mdtm (), ftp_rename (), ftp_delete (), ftp_site (), ftp_alloc (), ftp_chmod (), ftp_exec (), ftp_get_option (), ftp_nb_continue (), ftp_nb_continue () ftp_nb_fput (), ftp_nb_get (), ftp_nb_put (), ftp_raw (), ftp_set_option ()ftp_close ()FTP connection
gdimagecreate (), imagecreatefromgd (), imagecreatefromgd2 (), imagecreatefromgd2part (), imagecreatefromgif (), imagecreatefromjpeg (), imagecreatefrompng (), imagecreatefromwbmp (), imagecreatefromwbmp (), imagecreatefromgd2 (), imagecreatefromgd2part (), imagecreatex, createfromstring (), imagecreatefrom )imagearc (), imagechar (), imagecharup (), imagecolorallocate (), imagecolorat (), imagecolorclosest (), imagecolorexact (), imagecolorresolve (), imagegammacorrect (), imagegammacorrect (), imagecolorset (), imagecolorsforindex (), (imagecolorsforindex (), ), imagecolortransparent (), imagecopy (), imagecopyresized (), imagedashedline (), imagefill (), imagefilledpolygon (), imagefilledrectangle (), imagefilltoborder (), imagegif (), imagepng (), imagejpeg (), imagewbmp (), imageinterlace (), imageline (), imagepolygon (), imagepstext (), imagerectangle (), imagerotate (), imagesetpixel (), imagestring (), imagestringup (), imagesx (), imagesy (), imagettftext (), imagefilledarc (), imageellipse (), imagefilledellipse (), imagecolorclosestalpha (), imagecolorexactalpha (), imagecolorresolvealpha (), imagecopymerge (), imagecopymergegray (), imagecopyresampled (), imagetruecolortopalette (), imagesetbrush (), imagesettile (), imagesetthickness (), image2wbmp (), imagealphablending (location), imageantialias () , imagecolorclosesthwb (), imagecolordeallocate (), imagecolormatch (), imagefilter (), imagefttext (), imagegd (), imagegd2 (), imageistruecolor (), imagelayereffect (), imagepalettecopy (), imagesavealpha (), imagesetxbyle () ()imagedestroy ()GD image
gd fontimageloadfont ()imagechar (), imagecharup (), imagefontheight () no GD character set
GMP integergmp_init ()gmp_intval (), gmp_strval (), gmp_add (), gmp_sub (), gmp_mul (), gmp_div_q (), gmp_div_r (), gmp_div_qr (), gmp_div (), gmp_mod (), gmp_divexact (), gmp_mp_neg (), gmp_mp_neg (), ), gmp_abs (), gmp_sign (), gmp_fact (), gmp_sqrt (), gmp_sqrtrm (), gmp_perfect_square (), gmp_pow (), gmp_powm (), gmp_prob_prime (), gmp_gcd (), gmp_gcdext (), gmp_invert (), gmp_legendre (), gmp_jacobi (), gmp_mpor (), gmp_andom (), gmp_and_x (), gmp_setbit (), gmp_clrbit (), gmp_scan0 (), gmp_scan1 (), gmp_popcount (), gmp_hamdist () no GMP number
imapimap_open ()imap_append (), imap_body (), imap_check (), imap_createmailbox (), imap_delete (), imap_deletemailbox (), imap_expunge (), imap_fetchbody (), imap_fetchstructure (), imap_headerinfo (_headersap_headerinfo (), imap_headerinfo (), imapderbox ()), imap_headerinfo (_headersap_header) ), imap_getmailboxes (), imap_get_quota (), imap_status (), imap_listsubscribed (), imap_set_quota (), imap_set_quota (), imap_getsubscribed (), imap_mail_copy (), imap_mail_move (), imap_num_move (), imap_num_msg () imap_renamemailbox (), imap_reopen (), imap_subscribe (), imap_undelete (), imap_unsubscribe (), imap_scanmailbox (), imap_mailboxmsginfo (), imap_fetchheader (), imap_uid (), imap_fearch (), im_apsearch (), im_apsearch ()imap_close ()Reference to an IMAP or POP3 server
ingresingres_connect ()ingres_query (), ingres_num_rows (), ingres_num_fields (), ingres_field_name (), ingres_field_type (), ingres_field_nullable (), ingres_field_length (), ingres_num_fields (), ingres_field_precision (), (), ingres_rowfield_precision (), (), ingres_rowfield_precision (), ingres_field_precision (), (), ingres_rowfield_precision (), ingres_field_precision (), ingres_field_precision (), (), ingres_rowfield_precision (), (), ingres_rowfield_precision (), (), ingres_rowfield_precision (), (), ingres_rowfield_precision (), ingres_field_precision (), (), ingres_rowfield_precision (), (), ingres_field_etch ), ingres_commit (), ingres_autocommit ()ingres_close ()Reference to an ingresII database
ingres persistentingres_pconnect ()ingres_query (), ingres_num_rows (), ingres_num_fields (), ingres_field_name (), ingres_field_type (), ingres_field_nullable (), ingres_field_length (), ingres_num_fields (), (), ingres_rowfield_precision (), ingres_field_precision (), (), ingres_rowfield_precision (), ingres_field_precision (), (), ingres_rowfield_precision (), (), ingres_rowfield_precision (), ingres_field_precision (), ingres_field_precision (), ingres_field_back ), ingres_commit (), ingres_autocommit () no Persistent reference to an ingresII database
interbase blobibase_blob_create (), ibase_blob_import (), ibase_blob_open ()ibase_blob_add (), ibase_blob_cancel (), ibase_blob_echo (), ibase_blob_get (), ibase_blob_info ()ibase_blob_close ()
interbase linkibase_connect ()ibase_query (), ibase_prepare (), ibase_trans ()ibase_close ()Reference to the Interbase database
interbase link persistentibase_pconnect ()ibase_query (), ibase_prepare (), ibase_trans () no Persistent reference to an Interbase database
interbase queryibase_prepare ()ibase_execute ()ibase_free_query ()Interbase query
interbase resultibase_query ()ibase_fetch_row (), ibase_fetch_object (), ibase_field_info (), ibase_num_fields ()ibase_free_result ()Interbase result
interbase transactionibase_trans ()ibase_commit ()ibase_rollback ()Interbase transaction
ldap linkldap_connect (), ldap_search ()ldap_count_entries (), ldap_first_attribute (), ldap_first_entry (), ldap_get_attributes (), ldap_get_dn (), ldap_get_entries (), ldap_get_values ​​(), ldap_get_attribute (), ldap_get_values_len (), ldap_get_values_len ()ldap_close ()ldap connection
ldap resultldap_read ()ldap_add (), ldap_compare (), ldap_bind (), ldap_count_entries (), ldap_delete (), ldap_errno (), ldap_error (), ldap_first_attribute (), ldap_first_attribute (), ldap_get_dap), ldap_get_entries (), ldap_get_geties (), ldap_get_entries (), ldap_get_entries (), ldap_get_entries (), ldap_get_entries (), ldap_get (), ldap_get (), ldap_get () ), ldap_get_values_len (), ldap_get_option (), ldap_list (), ldap_modify (), ldap_mod_add (), ldap_mod_replace (), ldap_next_attribute (), ldap_next_attribute (), ldap_next_entry (), ldap_option (), ldap_set (), ldap_mod_deldel (), ldap_modion (), ldap_option (), ldap_option ()ldap_free_result ()ldap search result
ldap result entry
mysql linkmysql_connect ()mysql_affected_rows (), mysql_change_user (), mysql_create_db (), mysql_data_seek (), mysql_db_name (), mysql_db_query (), mysql_drop_db (), mysql_errno (), mysql_error (), mysql_insert_id (), mysql_insert_id (), mysql_ results (mysql_sl), (), mysql_select_db (), mysql_tablename (), mysql_get_host_info (), mysql_get_proto_info (), mysql_get_server_info ()mysql_close ()Reference to a MySQL database
mysql link persistentmysql_pconnect ()mysql_affected_rows (), mysql_change_user (), mysql_create_db (), mysql_data_seek (), mysql_db_name (), mysql_db_query (), mysql_drop_db (), mysql_errno (), mysql_error (), mysql_insert_id (), mysql_insert_id (), mysql_ result (mysql_sl), (), mysql_select_db (), mysql_tablename (), mysql_get_host_info (), mysql_get_proto_info (), mysql_get_server_info () no Persistent reference to a MySQL database
mysql resultmysql_db_query (), mysql_list_dbs (), mysql_list_fields (), mysql_list_processes (), mysql_list_tables (), mysql_query (), mysql_unbuffered_query ()mysql_data_seek (), mysql_db_name (), mysql_fetch_array (), mysql_fetch_assoc (), mysql_fetch_field (), mysql_fetch_lengths (), mysql_fetch_object (), mysql_fetch_object (), mysql_fetch_field () () ), mysql_field_table (), mysql_field_type (), mysql_num_fields (), mysql_num_rows (), mysql_result (), mysql_tablename ()mysql_free_result ()MySQL result
oci8 collectionoci_new_collection ()OCICollection :: append (), OCICollection :: assign (), OCICollection :: assignElem (), OCICollection :: getElem (), OCICollection :: max (), OCICollection :: size (), OCICollection :: trim ()OCICollection :: free ()Oracle Collection
oci8 connectionoci_connect (), oci_pconnect (), oci_new_connect ()oci_commit (), oci_error (), oci_new_cursor (), oci_parse (), oci_password_change () oci_rollback (), oci_server_version (), oci_set_action (), oci_set_client_identifier (), oci_set_client_name (), oci_set_client_info (),oci_close ()Connection to the Oracle database
oci8 praiseoci_new_descriptor ()OCILob :: append (), OCILob :: close (), OCILob :: eof (), OCILob :: erase (), OCILob :: export (), OCILob :: flush (), OCILob :: getBuffering (), OCILob :: import (), OCILob :: load (), OCILob :: read (), OCILob :: rewind (), OCILob :: save (), OCILob :: saveFile (), OCILob :: seek (), OCILob: : setBuffering (), OCILob :: size (), OCILob :: tell (), OCILob :: truncate (), OCILob :: write (), OCILob :: writeTemporary (), OCILob :: writeToFile (), oci_lob_copy () , oci_lob_is_equal ()OCILob :: free ()Oracle Large Objects
oci8 statementoci_parse () oci_new_cursor ()oci_bind_array_by_name (), oci_bind_by_name (), oci_cancel (), oci_define_by_name (), oci_error () oci_execute (), oci_fetch_all (), oci_fetch_array (), oci_fetch_array (), oci_fetch_array (), oci_fetch_fetch (), oetchfullci (), oci_fetch_fetch (), oetchfullci (), oci_fetch_fetch (), oetchfullci (), oci_fetch_fetch (), oetchfullci (oetch_field) , oci_field_name (), oci_field_precision (), oci_field_scale (), oci_field_size (), oci_field_type_raw (), oci_field_type (), oci_num_fields (), oci_num_rows (), oci_result (), oci_ement_type (), oci_ement_set_type (), oci_ement_set_type ()oci_free_statement ()Oracle cursor
odbc linkodbc_connect ()odbc_autocommit (), odbc_commit (), odbc_error (), odbc_errormsg (), odbc_exec (), odbc_tables (), odbc_tableprivileges (), odbc_do (), (), odbc_columncumns (), () ), odbc_rollback (), odbc_setoption (), odbc_gettypeinfo (), odbc_primarykeys (), odbc_foreignkeys (), odbc_procedures (), odbc_statistics ()odbc_close ()Reference to an ODBC database
odbc link persistentodbc_pconnect ()odbc_autocommit (), odbc_commit (), odbc_error (), odbc_errormsg (), odbc_exec (), odbc_tables (), odbc_tableprivileges (), odbc_do (), (), odbc_columncumns (), () ), odbc_rollback (), odbc_setoption (), odbc_gettypeinfo (), odbc_primarykeys (), odbc_foreignkeys (), odbc_procedures (), odbc_statistics () no Persistent reference to an ODBC database
odbc resultodbc_prepare ()odbc_binmode (), odbc_cursor (), odbc_execute (), odbc_fetch_into (), odbc_fetch_row (), odbc_field_name (), odbc_field_num (), odbc_field_type (), odbc_field_source (), odbc_field_s, (odcum_field_s, (odcum_field_s), (odcum_field), (odcum_field_s, (odcum_field_s), (odcum_field), (odcum_field_s, (odcum_field), (odnum_field_s ), odbc_num_rows (), odbc_result (), odbc_result_all (), odbc_setoption ()odbc_free_result ()ODBC result
birdstep linkLink to the Birdstep database (before PHP 7.3.0)
birdstep resultBirdstep result (before PHP 7.3.0)
OpenSSL keyopenssl_get_privatekey (), openssl_get_publickey ()openssl_sign (), openssl_seal (), openssl_open (), openssl_verify ()