Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Messages - butterly23

Pages: [1]
1
okay guys, sorry i wasnt clear enough but i was working on some code for a client and it would be very inappropriate for me to paste portions of the code here.

Anyways, for some reason in iteration in an array ( for loop) nested with an if, one case it was adding a white space. I used rtrim on the iteration so now it's all good. Thanks for the help everyone and sorry for the inconvinience

2
Yes I tried that but webbrowser seems to put whitespaces. If I open up source of the page, no white spaces there. Any other idea?

3
really? no one?

4
oh and forgot to add: it's a for loop and an array

5
General PHP Help / Whitespace in browser, but without not in source
« on: July 14, 2011, 08:36:46 PM »
Hey guys,

I have a small problem that seems impossible to find the answer to, here it is:

When php returns the value it needs to return, there should be no white spaces between the values, ex:

value1,value2,value3

When i run echo $result; there are no white spaces and it's all good. But when I try it form the browser it adds a white space. When I take a look at the source, there's no white space there, values are in order as they should.

Can't find anythin on how to get rid of the white spaces and why they even appear. Gotta be some default setting, but cant find it.


Pages: [1]