Quick Reference Tips
On this page, you can find many neat tips and tricks to look up information about PHP functions and language constructs. Send your suggestions for tips to the webmasters.
PHP Docs-to-go for Google Chrome
Submitted by Richard Wagener (07-Oct-2011)
This is the complete php manual including user notes that works 100% OFFLINE. It allows for searching, and quick access by using the Omnibox Feature. To use the omnibox type > Ctlr+T > Type "OP" > Press (Tab) > Enter the function name
For more info, see https://chrome.google.com/webstore/detail/mlilmganaobieaclflbciblffhaagnip
PHPDevBar for Firefox
Submitted by Felipe Nascimento de Moura (26-Jul-2011)
PHPDevBar is an addon for Firefox. This toolbar uses the official documentation from PhD and quickly retrieves method and function definitions. You can also use it to search in PHP Web sites.
Besides that, PHP Developer Toolbar has a huge list of user groups and server and client tools/links.
The addon also contains
PHPClassGen, which allows you to easily generate
a class and its HTML Form just by filling out a form.
The Firefox addon is available at https://addons.mozilla.org/pt-BR/firefox/addon/php-developer-toolbar/. See the projects website for more details at http://phpdevbar.org
Quick Reference for Google Chrome
Submitted by Søren Nielsen (31-Jul-2009)
Rust right-click (control-click or click-and-hold for Macintosh users) on this link: PHP Quick Reference and add it to your bookmarks. With some browsers, you may need to edit your bookmarks manually to give the bookmark an easy-to-remember title.
If you want the bookmark toolbar to appear simply press Ctrl+B.
Quick Reference for Opera 9
Submitted by Mustaque Ullah (09-Sep-2007)
In Opera, go to Tools --> Preferences, and then click on the Search tab. You should "Add a new search engine" and fill in the appropriate fields. My choices are below.
- Name: PHP
- Keyword: p
- Address: http://php.net/search.php
- Query string: pattern=%s&show=quickref
You have to check "Use POST" to be able to type in a query string.
From then on (click OK twice to close the windows) you should be able to search the function list by typing "p function" in the address bar (or use the search dropdown menu). You can change "quickref" to "all" if you want to search all php.net sites, or "manual" for the online documentation.
Function lookup with Apple Dashboard
Submitted by Gabor Hojtsy (02-Apr-2006)
There are some options for Apple Dashboard users:
Andrew Hedges created the PHP
Function Reference widget, which ships with a copy of the PHP Manual, and
includes additional functionality, such as a favourites list and an interactive
- Claudio Procida's PHPQuickReference widget provides a custom view of the online PHP documentation with some added features.
- Havard Eide implemented the Dashboard Widget version of phpm, providing function lookups.
- Simon Ganiere created the PHP Manual widget, which provides a simple search field to the PHP.net function lookup search.
- Nathan Bolender also created a simple PHP.net Search widget, available from the Apple website.
Search from the Safari Search Bar
Submitted by Gabor Hojtsy (19-Jan-2004)
You can point your search engine setting to a local script on your own webserver, and set up a PHP script to allow you to use shortcuts provided by other browsers. See the detailed explanation at MacOSXHints.com.
Search from the WeberDev Toolbar
Submitted by Boaz Yahav (16-Aug-2003)
The WeberDev Toolbar provides direct search functions to the PHP function list and the bug database, right from a browser toolbar.
Quick Reference for BBEdit
Submitted by Stian Andersen (27-July-2003)
BBEdit users can put this little AppleScript into the Scripts folder of BBEdit to look up functions on the PHP website as they type. This will probably work in other AppleScript supporting text editors too, with small modifications. The script uses the current selection, or prompts for a function name, and uses the default browser to show the page at php.net.
tell application "BBEdit" set fu to selection of window 1 as string if fu = "" then set fu to text returned of (display dialog "PHP Function:" default answer "") end if if fu is not "" then set target_URL to "http://php.mirrors.ilisys.com.au/" & fu open location target_URL end if end tell
Quick Reference for iCab
Submitted by Telcontar (17-Jun-2003)
Open the Preferences dialog box, select Searches and then Internet Sites. Click New, add "PHP Quick Reference" as the Title, and "http://php.mirrors.ilisys.com.au/" as the URL. If you add a letter in the Key column (eg. "p") you can search using the address bar with that letter (eg. "p str_replace"). Otherwise, use Edit → Find (Cmd-F) and select "On the Internet" under Find and choose "PHP Quick Reference" as the search site.
Quick Reference for Internet Explorer 4 and above
Submitted by Fraghunter (07-Nov-2002)
Just right-click on this link: PHP Quick Reference and add it to your bookmarks. Using this bookmark you can directly get to the documentation page of any function you have selected the name of on the page, or if there is no selection, you are prompted for a string to look for.
Quick Reference for KDE 3.x
Submitted by James Grant (07-Nov-2002)
In KDE 3.0, the PHP quicksearch is preconfigured, so you can type "php:mail" in Konqueror to get the mail() function's manual page.
Search Box for Galeon
Submitted by Carter Comunale (31-Oct-2002)
- Press CTRL+D to add a bookmark
- Edit the bookmark, filling the following fields in:
- Smart URL
- You can also add a logo to the bookmark, see our logos page
Quick Reference for OmniWeb on Mac OS X
Submitted by Steve Poole (03-Oct-2002)
- Open the Preferences window in OmniWeb, and select Shortcuts.
- Click the + button to add a shortcut.
- In the Shortcut column type: php@
- In the Destination URL column type: http://php.mirrors.ilisys.com.au/%@
- Close the Preferences window.
Now you can search for PHP functions by typing into the URL well. For instance, php mysql or php strstr.
Quick Reference for Opera
Submitted by Paul Sculthorpe (11-Jun-2002)
Add this stuff to search.ini in your Opera directory.
I replaced one of the existing search engine entries (number 4 in this case), but there are tools around that allow you to fully manage the search features of Opera.
After adding, saving and restarting Opera, I can access the PHP function list by typing 'p is_dir' in the address bar of any Opera window.
[Search Engine 4] Name=PHP URL=http://php.mirrors.ilisys.com.au/Query= Key=p Is post=0 Has endseparator=0 Encoding=utf-8 Search Type=0
Quick Reference for KDE 2.1
Submitted by Christoph Luehr (10-Mar-2001)
With KDE 2.1, it is possible to configure the Konqueror web browser to recognize quick reference URIs, for example: "php:mysql_connect".
Just open the Konqueror menu "Settings → Configure Konqueror", select the tab "Enhanced Browsing", check "Enable Web Shortcuts".
Then click on "Add..." and fill the dialog:
- Search provider name: "PHP Manual Quick Reference"
- Search URI: http://php.mirrors.ilisys.com.au/\1
- URI Shortcuts: php
Submitted by Anonymous (07-Mar-2001)
Just right-click (control-click or click-and-hold for Macintosh users) on this link: PHP Quick Reference and add it to your bookmarks. With some browsers, you may need to edit your bookmarks manually to give the bookmark an easy-to-remember title.
Adding the Quick Reference to Mozilla and Netscape 6/7
Submitted by André Langhorst (16-Aug-2000)
Quick access to PHP documentation and site search for all Mozilla (including Firebird) and Netscape 6/7 users:
- Click "Bookmarks → Manage Bookmarks"
- Create a bookmark in a folder of your choice on the following URL: http://php.mirrors.ilisys.com.au/%s and choose a name for it.
- Right click the bookmark you have just created and select "Properties..."
- Choose a "custom keyword" you want to enter in the URL bar, eg. "php" and fill it in.
- Click "ok" and open a new browser window.
- Finished. Now you are able to enter eg. "php fgets" to look up the manual entry on the function fgets(). You can also access PHP.net pages with this shortcut. If you type "php links" you will get to the links page on our site.
Adding the Quick Reference to Internet Explorer 5
Submitted by Colin Viebrock (28-Jul-2000)
- If you don't already have the IE5 Tools package, download and install it from www.microsoft.com/Windows/IE/WebAccess/ie5tools.asp
- Launch the QuickSearch utility (you'll find it on your Links bar)
Add a new search shortcut by clicking on "New" and use the
- Shortcut: php
- Search: Custom URL
- URL: http://php.mirrors.ilisys.com.au/%s
- Click "Ok", then click "Save" to keep your new settings
- That's it! Try it by typing "php strlen" in the IE Address bar. You should jump right to the manual entry for strlen().
Adding the Quick Reference to Netscape on Linux
Submitted by David Rose (28-Jul-2000)
Further to the example above for Windows/IE users, here's something Linux folks can do:
- Create a file called phpfind somewhere on an executable path
In that file, write the following code (substituting the path to Netscape,
#!/bin/sh /usr/bin/netscape http://php.mirrors.ilisys.com.au/$1
- Save it and type chmod +x phpfind to make it executable
- That's it. When you type "phpfind fopen" on your command line, Netscape will open the fopen() documentation page for you.
Quick Reference for Gnome Users
Submitted by Benjamin Curtis (29-Jul-2000)
Here's another search option for Linux users who use Gnome. This is a macro for gnome's mini-commander panel applet (modified from the Yahoo search that comes with the applet):
gnome-moz-remote --newwin http://php.mirrors.ilisys.com.au/$(echo
'\1'|sed -e ': p;s/+/%2B/;t p;: s;s/\ /+/;t s;: q;s/\"/%22/;t q')