Okay, I'm not a complete beginner in php but I don't understand why is some tutorial I was reading creating a taxonomy in wordpress used double quote's and in the wordpress codex it use's single quotes.
Now my understanding of single and double quotations works like this
<?php
//double quotes
$colour = brown;
echo "The dog has $colour fur.";
//outputs - the dog has brown fur.
//single quotes
$colour = brown;
echo 'the dog has $colour fur.';
//outputs - the dog has $colour fur.
?>
But what I don't quite understand is this.
register_taxonomy("project-type",
array("portfolio"),
array("hierarchical" => true,
"label" => "Project Types",
"singular_label" => "Project Type",
"rewrite" => true));
what difference does it make if its inside an array? and on the wp codex is use's single quotes like so.
add_action( 'init', 'create_book_tax' );
function create_book_tax() {
register_taxonomy(
'genre',
'book',
array(
'label' => __( 'Genre' ),
'rewrite' => array( 'slug' => 'genre' ),
'hierarchical' => true,
)
);
}