Blog
Archive for the PHP Category
/*
public – the property or method can be accessed from everywhere. This is default
protected – the property or method can …
Read more
// Example string
$blog = ‘Your blog is Excellent!’;
// returns ‘our blog is Excellent!’
substr($blog, 1);
// returns ‘xcellent!’
substr($blog, -9);
// returns ‘Your’
substr($blog, 0, …
Read more
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<?php the_content(); ?>
<?php endwhile; endif; ?>
<h2 class=”clear”>Featured Projects</h2>
…
Read more
<?php
function test($my_pattern, $my_string) {
$output = ‘<p><strong>My String:</strong><br />’ . $my_string . ‘</p>’;
$output .= ‘<p><strong>My Pattern:</strong><br />’ …
Read more
Below are WordPress and PHP code samples on how to:
Create custom post types using a plugin.
Create multiple text fields (using …
Read more