remove trailing slash from array


Posted on 16th Feb 2014 07:03 pm by admin

I have the following array which contains trailing slashes I need to remove. What is the best way to accomplish this?

Array ( [Field1] => A [Field2] => Test [Field3] => öööö '')

No comments posted yet

Your Answer:

Login to answer
212 Like 9 Dislike
Previous forums Next forums
Other forums

the problem with str_replace
$str="hahahahahahahahahahahahahaha";
$nn=1;
$str=str_replace('ha','MyGod',$str,$nn);

Search function
I am looking for some guidance from the experts.

I am trying to create a search function. It

My XSRF Prevention code isn't working
First of all, thanks for the generous help you guys have given me in the past on this forum.
Seco

xml element exists
Code: [Select]<?xml version="1.0"?>
<Addresses>
<

PHP Session Issue
I'm having an issue with one section on my website dealing with sessions. Now I know that myself and

code help - pagination
Hi all, I have this code, basically a user logs into my site and they get this page.

The pro

login from external site
Hi my new experience begins, Now what i am trying to do is i make three pages, login.php logout.php

What is SAP Avatar ?
Hi All,

This G.Satish , my boss asked me to explore on SAP Avatar. I searced in internet

highlighting search terms
well, I started this in the regular PHP section, but it no longer fits there. Suffice it to say, I'm

trim function issues
Hi guys, total noob here...

So I've been tinkering around with a html and am using php to em

Sign up to write
Sign up now if you have flare of writing..
Login   |   Register
Follow Us
Indyaspeak @ Facebook Indyaspeak @ Twitter Indyaspeak @ Pinterest RSS



Play Free Quiz and Win Cash