ezan Posted June 27, 2009 Report Share Posted June 27, 2009 Thanks for the php videos...just started learning php; could someone please help with this: I'm using php array on my site like this: <?php $navlinks=array("C511","C711","C811","Gzone","Zone"); ?> (These are navigational links on the sidebar). When it prints, it looks like this: C511 C711 C811 Gzone Zone How do I get it to print with a 'tabbed space' like this: C511 C711 C811 Gzone Zone or this: C511 C711 C811 Gzone Zone Thank you so much for your help, Andy Quote Link to comment Share on other sites More sharing options...
jlhaslip Posted June 27, 2009 Report Share Posted June 27, 2009 try that. Quote Link to comment Share on other sites More sharing options...
ezan Posted June 27, 2009 Author Report Share Posted June 27, 2009 <?php $navlinks=array("C511","C711","C811", "\r\n","Gzone","Zone"); ?> try that. Hi jlhaslip, I tried that but it didn't work; I also tried "\r\t" and "\n" and "\t" none of those worked Andy Quote Link to comment Share on other sites More sharing options...
jlhaslip Posted June 28, 2009 Report Share Posted June 28, 2009 What is your code for the printing of the array? Quote Link to comment Share on other sites More sharing options...
ezan Posted June 28, 2009 Author Report Share Posted June 28, 2009 (edited) What is your code for the printing of the array? Hi, I'm not using a print code; I tried inserting " " and nl2br("\n") at the spot(s) I wanted the line breaks(I used them seperately), both worked but the codes created an invisible link. When I hover my cursor over the line break, it displays a link that ends with .html and .html respectively. ezan Edited June 28, 2009 by ezan Quote Link to comment Share on other sites More sharing options...
ezan Posted June 30, 2009 Author Report Share Posted June 30, 2009 What is your code for the printing of the array? Hi' date=' I'm not using a print code; I tried inserting " " and nl2br("\n") at the spot(s) I wanted the line breaks(I used them seperately), both worked but the codes created an invisible link. When I hover my cursor over the line break, it displays a link that ends with .html and .html respectively. ezan[/quote'] I got this resolved; the script I'm using had to be modified. I don't think one can create a line break inside a php array coded to print out hyperlinks on a page. ezan Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.