frankyonnetti
7/7/2013 - 8:21 PM

#php replace spaces with dashes

Drupal 7 - replace spaces with dashes #drupal #d7 #php

<?php 
	$match=strtolower($node->title); print $node_field[0]['value'] = str_replace(' ', '-', $match); 
?>