1<?php
2// It doesnt get any better than this Example
3$pizza = "piece1 piece2 piece3 piece4 piece5 piece6";
4$pieces = explode(" ", $pizza);
5echo $pieces[0]; // piece1
6echo $pieces[1]; // piece2
1$roots_includes = array(
2 '/functions/body-class.php',
3 '/functions/connections.php'
4);
5
6foreach($roots_includes as $file){
7 if(!$filepath = locate_template($file)) {
8 trigger_error("Error locating `$file` for inclusion!", E_USER_ERROR);
9 }
10
11 require_once $filepath;
12}
13unset($file, $filepath);