Results 1 to 2 of 2

Thread: Check variable if it's a string

Threaded View

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Jan 2005
    Location
    Cebu
    Posts
    607

    Resolved Check variable if it's a string

    Dunno if I asked this question (but I think it was the is_a function). Anyway, how can I check if the variable has a string value?

    Like $a = "hello World" or $a = 'hello', I would like to check the variable $a whether it's a string or not. How do I go about doing this? Thanks.
    Last edited by nebulom; Oct 1st, 2007 at 03:17 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width