Playgrounds
Snippets
Developers
Compiler
All
ActionScript
Ajax
AngularJS
Apache
AppleScript
ASP.NET
Bash
C
C#
C++
Coffee
CoffeeScript
ColdFusion
Command
CSS
Delphi
Django
ES6
GLSL
Grunt
Gulp
HAML
Haskell
HTML
iOS
Jade
Java
JavaScript
jQuery
JSX
Less
LUA
MDX
MySQL
Objective
Other
Pascal
Perl
PHP
Plain text
PowerShell
Processing
Progress
Prolog
Pseudocode
Python
Rails
RegExr
Ruby
SASS
Scala
Scheme
SCSS
SmallBASIC
Smarty
SQL
Stylus
SVG
Swift
TypeScript
VHDL
X++
XHTML
XML
Xojo
XSLT
New snippet
New playground
Sign up
Login
Upload
Playgrounds
Snippets
Developers
Sign up
Login
Codepad is a place for developers to share code snippets (PHP, Java, Bash, C, C++, Python and more). Create your HTML, CSS and JS Demos.
Sign up
Learn more
PHP snippets by Taufik Nurrohman
Extract HTML Attributes with Regex in PHP
PHP
0
0
3129
PHP Universal Slug URL Generator
PHP
1
6
2577
PHP Function to Minify HTML, CSS and JavaScript
PHP
3
10
14615
PHP Chainnable Static Method
PHP
0
0
1315
PHP Faster than `in_array`
PHP
0
1
1579
The Simplest PHP Markdown Parser
PHP
1
5
4459
Smart Punctuation Converter
PHP
0
2
2088
Line Break to Paragraph Converter
PHP
2
9
2115
PHP `is_json`
PHP
1
8
3486
Convert Array to Object/Object to Array Recursively
PHP
0
8
1548
Common String Converter in PHP
PHP
0
7
2163
Pluggable PHP Static Class
PHP
2
8
1973
PHP Magic Methods
PHP
0
7
1827
PHP Check if Variable is an Instance of “Any” Classes
PHP
0
9
4057
PHP Chainnable Static Method #2
PHP
0
2
1332
PHP Check for Numeric/Associative Array
PHP
0
0
1306