Ruby on Rails
PHPEquivalents

PHP Equivalent Manual

This page is intended to be a way in to Ruby and Rails’ functionality for people who know how they’d do it in PHP, but don’t yet know where to look in Rails. If you know your way around the PHP manual, you should be able to find an answer in approximately the same place here. Of course, not everything has a direct equivalent, but this should be as good a place to start as any.


  1. Getting Started
    1. Introduction
    2. A simple tutorial
  2. Installation and Configuration
    1. General Installation Considerations
    2. Installation on Unix systems
    3. Installation on Mac OS X
    4. Installation on Windows systems
    5. Installation of PECL extensions
    6. Problems?
    7. Runtime Configuration
  3. Language Reference
    1. Basic syntax
    2. Types
    3. Variables
    4. Constants
    5. Expressions
    6. Operators
    7. Control Structures
    8. Functions
    9. Classes and Objects (PHP 4)
    10. Classes and Objects (PHP 5)
    11. Exceptions
    12. References Explained
  4. Security
    1. Introduction
    2. General considerations
    3. Installed as CGI binary
    4. Installed as an Apache module
    5. Filesystem Security
    6. Database Security
    7. Error Reporting
    8. Using Register Globals
    9. User Submitted Data
    10. Magic Quotes
    11. Hiding PHP
    12. Keeping Current
  5. Features
    1. HTTP authentication with PHP
    2. Cookies
    3. Sessions
    4. Dealing with XForms
    5. Handling file uploads
    6. Using remote files
    7. Connection handling
    8. Persistent Database Connections
    9. Safe Mode
    10. Using PHP from the command line
  6. Function Reference
    1. .NET Functions
    2. Apache-specific Functions
    3. Alternative PHP Cache
    4. Advanced PHP debugger
    5. Array Functions
    6. Aspell functions [deprecated]
    7. BCMath Arbitrary Precision Mathematics Functions
    8. PHP bytecode Compiler
    9. Bzip2 Compression Functions
    10. Calendar Functions
    11. CCVS API Functions [deprecated]
    12. Class/Object Functions
    13. Classkit Functions
    14. ClibPDF Functions
    15. COM and .Net (Windows)
    16. Crack Functions
    17. Character Type Functions
    18. CURL, Client URL Library Functions
    19. Cybercash Payment Functions
    20. Credit Mutuel CyberMUT functions
    21. Cyrus IMAP administration Functions
    22. Date and Time Functions
    23. DB++ Functions
    24. Database (dbm-style) Abstraction Layer Functions
    25. dBase Functions
    26. DBM Functions [deprecated]
    27. dbx Functions
    28. Direct IO Functions
    29. Directory Functions
    30. DOM Functions
    31. DOM XML Functions
    32. Error Handling and Logging Functions
    33. Exif Functions
    34. Expect Functions
    35. File Alteration Monitor Functions
    36. Forms Data Format Functions
    37. filePro Functions
    38. Filesystem Functions
    39. Firebird/InterBase Functions
    40. Firebird/Interbase Functions (PDO_FIREBIRD)
    41. FriBiDi Functions
    42. FrontBase Functions
    43. FTP Functions
    44. Function Handling Functions
    45. Gettext
    46. GMP Functions
    47. gnupg Functions
    48. Net_Gopher
    49. hash Functions
    50. HTTP Functions
    51. Hyperwave Functions
    52. Hyperwave API Functions
    53. IBM DB2, Cloudscape and Apache Derby Functions
    54. ICAP Functions [deprecated]
    55. iconv Functions
    56. ID3 Functions
    57. IIS Administration Functions
    58. Image Functions
    59. IMAP, POP3 and NNTP Functions
    60. Informix Functions
    61. Informix functions (PDO_INFORMIX)
    62. Ingres II Functions
    63. IRC Gateway Functions
    64. PHP / Java Integration
    65. KADM5
    66. LDAP Functions
    67. libxml Functions
    68. Lotus Notes Functions
    69. LZF Functions
    70. Mail Functions
    71. mailparse Functions
    72. Mathematical Functions
    73. MaxDB PHP Extension
    74. MCAL Functions
    75. Mcrypt Encryption Functions
    76. MCVE (Monetra) Payment Functions
    77. Memcache Functions
    78. Mhash Functions
    79. Mimetype Functions
    80. Ming functions for Flash
    81. Miscellaneous Functions
    82. mnoGoSearch Functions
    83. Microsoft SQL Server Functions
    84. Microsoft SQL Server and Sybase Functions (PDO_DBLIB)
    85. Mohawk Software Session Handler Functions
    86. mSQL Functions
    87. Multibyte String Functions
    88. muscat Functions
    89. MySQL Functions
    90. MySQL Functions (PDO_MYSQL)
    91. MySQL Improved Extension
    92. Ncurses Terminal Screen Control Functions
    93. Network Functions
    94. Newt Functions
    95. NSAPI-specific Functions
    96. Object Aggregation/Composition Functions
    97. Object property and method call overloading
    98. Oracle functions
    99. ODBC Functions (Unified)
    100. ODBC and DB2 functions (PDO_ODBC)
    101. oggvorbis
    102. OpenAL Audio Bindings
    103. OpenSSL Functions
    104. Oracle Functions [deprecated]
    105. Oracle Functions (PDO_OCI)
    106. Output Control Functions
    107. Ovrimos SQL Functions
    108. Paradox File Access
    109. Parsekit Functions
    110. Process Control Functions
    111. Regular Expression Functions (Perl-Compatible)
    112. PDF Functions
    113. PDO Functions
    114. PHP Options&Information
    115. POSIX Functions
    116. Regular Expression Functions (POSIX Extended)
    117. PostgreSQL Functions
    118. PostgreSQL Functions (PDO_PGSQL)
    119. Printer Functions
    120. Program Execution Functions
    121. PostScript document creation
    122. Pspell Functions
    123. qtdom Functions
    124. Radius
    125. Rar Functions
    126. GNU Readline
    127. GNU Recode Functions
    128. RPM Header Reading Functions
    129. runkit Functions
    130. Satellite CORBA client extension [deprecated]
    131. SDO Functions
    132. SDO XML Data Access Service Functions
    133. SDO Relational Data Access Service Functions
    134. Semaphore, Shared Memory and IPC Functions
    135. SESAM Database Functions
    136. PostgreSQL Session Save Handler
    137. Session Handling Functions
    138. Shared Memory Functions
    139. SimpleXML functions
    140. SNMP Functions
    141. SOAP Functions
    142. Socket Functions
    143. Standard PHP Library (SPL) Functions
    144. SQLite Functions
    145. SQLite Functions (PDO_SQLITE)
    146. Secure Shell2 Functions
    147. Statistics Functions
    148. Stream Functions
    149. String Functions
    150. Shockwave Flash Functions
    151. Sybase Functions
    152. TCP Wrappers Functions
    153. Tidy Functions
    154. Tokenizer Functions
    155. Unicode Functions
    156. URL Functions
    157. Variable Handling Functions
    158. Verisign Payflow Pro Functions
    159. vpopmail Functions
    160. W32api Functions
    161. WDDX Functions
    162. win32ps Functions
    163. win32service Functions
    164. xattr Functions
    165. xdiff Functions
    166. XML Parser Functions
    167. XML-RPC Functions
    168. XMLReader functions
    169. XSL functions
    170. XSLT Functions
    171. YAZ Functions
    172. YP/NIS Functions
    173. Zip File Functions (Read Only Access)
    174. Zlib Compression Functions