Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

spaces in an array

  • 18-02-2008 12:07pm
    #1
    Registered Users, Registered Users 2 Posts: 94 ✭✭


    I'm trying to fill an element in an array with a specific amount of spaces, eg 40, but the array is triming it down to one space. How do I stop it?


Comments

  • Registered Users, Registered Users 2 Posts: 94 ✭✭sinkingfish


    oh it's php btw


  • Registered Users, Registered Users 2 Posts: 9,579 ✭✭✭Webmonkey


    Any code?


  • Registered Users, Registered Users 2 Posts: 1,287 ✭✭✭joe_chicken


    I'm trying to fill an element in an array with a specific amount of spaces, eg 40, but the array is triming it down to one space. How do I stop it?

    Don't know much about PHP, but by the way you've explained it, you are trying to put an array of characters (i.e. a string of spaces) into one element of an array of characters.

    By the sounds of it, you'd need an array of arrays (or strings) so that each element in the bigger array can hold more than one character.


Advertisement