Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

trim elements of array php

$arr = array( " John ", "Jacob ", " Tom ", " Tim ");
$result = array_map('trim', $arr)
Source by www.tutorialspoint.com #
 
PREVIOUS NEXT
Tagged: #trim #elements #array #php
ADD COMMENT
Topic
Name
7+6 =