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
13
snippets by
Juliette Tworsey
php if conditional HTML
PHP
0
1
1695
PHP - Include Relative Path
PHP
0
2
1907
Ajax Js to PHP without reload page
Ajax
0
6
2226
Check if string contains specific word with PHP
PHP
0
5
2292
Get the first letter of a string with PHP
PHP
0
5
13940
Create and delete cookies using PHP
PHP
0
5
1719
Create a password in PHP
PHP
0
6
1731
Verify a password in PHP
PHP
0
5
2068
301 Redirect
PHP
0
3
1153
Always Up To Date Copyright Year
PHP
0
2
1017
Capitalize the first letter of each word in PHP
PHP
1
7
2645
PHP - If / Else If / Else
PHP
0
3
1549
PHP - Object and Array Creation + Dynamic Accessors
PHP
0
3
1928