Drupal 7 - replace spaces with dashes #drupal #d7 #php
<?php $match=strtolower($node->title); print $node_field[0]['value'] = str_replace(' ', '-', $match); ?>