String Type
a string is simply a sequence of characters treated as a contiguous group.Such groups are
typically delimited by single or double quotes,
String Examples:

$str_sq = 'single quat string';
$str_dq = "double quat string";
$str_zc = "";//string with zero characters;

as I mentioned a string can be enclosed both in single and double quotation marks,that each will behave diffrently.singly quoted strings are treated literally meaning that if there were any variables inside it ,the name of the variable will be printed instead of the value of it, but double quoted strings will reaturn the value of the variable with printing of sequence of characters near it.

single quoted Strings
Escept some characters, singly quoted strings will read and stroe their characters literary, meaning that if there is a varaible inside the string value, it will print the variable name with dollar sign itself rather than returning its value.

$Literally = 'This $variable wont have its value returned';


This $variable wont have its value returned

nesting quotations in string
There are Times where you want to have one wod to be emphasized or to isolate a word from the body of your written sentens that will be accomplsihed so by using quotes by as the quotes are in the PHP language structure, How to nest it?
if you want to do so first you must see if you wat the string to be read litterally
and if you want a word inside your sentence to be quoted, the quotation must be vary from the quotation used for the uper leve
forexamlpe if you are using the signle quotation then you should use the double inside for litteral strings
if you are tring to use double qoutation for isolate or emphasise a word then you must use the single quotaton on the uper level

$single_quote = 'This contains "double-quotes" in this string but single qoute for the variable';
$double_quote = "This contains 'single-quotes' in this string but double qoutes for the variable";

there is also another way to have both quotes for the variable string and inside of the variabel that could be accomplishde by using the \’ and if you are trying to use double quotes you should use \” inside the string

$single_quote = 'This contains \'single-quotes\' both for variable and insdoe of the string';
$double_quote = "This contains "double-quotes" both for variable and insdoe of the string";


This contains 'single-quotes' both for variable and insdoe of the string
This contains "double-quotes" both for variable and insdoe of the string


  1. 48 51 Early closure of the letrozole trial led by the National Cancer Institute of Canada NCIC 49 was recommended after a median follow up of 2 years levitra 10 mg beyer Because the body measurements were obtained after preoperative treatment, they could have changed for the excluded patients, as weight gain and changes in body composition have previously been reported in breast cancer patients during adjuvant therapy 45

  2. Do you mind if I quote a couple of your posts as long
    as I provide credit and sources back to your blog?

    My blog is in the exact same niche as yours and my visitors would definitely
    benefit from a lot of the information you present here. Please let
    me know if this okay with you. Thanks!

  3. The assignment submission period was over and I was nervous, slotsite and I am very happy to see your post just in time and it was a great help. Thank you ! Leave your blog address below. Please visit me anytime.

  4. PHP is a popular programming language that is used to create websites. In this lesson, we will learn about variables and their types. We will also look at how to create a string using the string type in PHP. Cerebrovascular Adelaide

  5. PHP is a popular open source PHP language that is used to create dynamic web pages. In this lesson, we will explore the string type in PHP. We will learn how to create and use variables, how to use string functions, and how to format strings. Orthodontics Willoughby

  6. In this PHP lesson, you’ll learn about the string type and how to use it in your code. You’ll also learn how to access certain properties of a string, such as length and substring. Electrician Wakerley

  7. If you’re looking to get started with PHP, then you’ll want to check out our PHP training course. In this lesson, we’ll talk about variables and their types. We’ll cover string types in particular. Electrician Lane Cove

  8. Welcome to the Voshka PHP training website! In this lesson, we will be discussing the string type in PHP. We will be discussing how to use string variables, how to create string functions, and how to access string data. Electrician Greenwood

  9. Holymoly that’s crazy man! Thank you so much I really
    appreciate for this man. Can i say to you change your life and if you want to have a glance?
    I will definitly share info about how to make a fortune I will be the one showing values from now on.

  10. viagra headache Certified diets are natural ingredient diets produced to meet the requirements of the governmental good laboratory practice GLP standards, requiring periodic feed analysis for environmental contaminants that may interfere with research studies CFR 2004; EU 2004; OECD 2011

  11. Excellent post. Keep writing such kind of information on your page.

    Im really impressed by your site.
    Hey there, You have done a great job. I’ll certainly digg
    it and personally recommend to my friends. I am confident
    they will be benefited from this web site.

  12. excellent issues altogether, you simply received a new reader.
    What may you suggest in regards to your post that you simply made
    some days in the past? Any positive?

  13. Thank you a lot for sharing this with all folks you really recognize what you’re talking about!
    Bookmarked. Please additionally talk over with my web site =).

    We may have a hyperlink exchange agreement among us

  14. Radiation therapy tends to be recommended to women who are younger and healthier, and who have a longer lifespan, particularly now with the availability of accelerated whole breast radiation and partial breast irradiation options that shorten treatment duration buy cialis uk

  15. Loss of hearing can be from different concerns. From this
    point on all that means something to builds up is the happiness of the song.
    You step outside early one morning with your coffee.

    Feel free to visit my blog post; Tinnitus Guard

  16. Hi there! I simply wish to offer you a huge thumbs up for your excellent info
    you’ve got here on this post. I will be coming
    back to your web site for more soon.

  17. Aw, this was an extremely good post. Finding the
    time and actual effort to create a great article… but what
    can I say… I procrastinate a whole lot and never manage to get nearly anything done.

  18. We’re a group of volunteers and opening a new scheme in our community.
    Your website provided us with valuable info to work on. You’ve done
    a formidable job and our whole community will be thankful to

  19. Great article! That is the kind of information that
    are supposed to be shared across the web. Shame on Google
    for not positioning this post upper! Come on over
    and consult with my site . Thanks =)

  20. Hi! Do you know if they make any plugins to help with SEO?

    I’m trying to get my blog to rank for some targeted keywords but I’m not seeing very
    good success. If you know of any please share. Appreciate it!

  21. Hello! I just wanted to ask if you ever have any issues with hackers?

    My last blog (wordpress) was hacked and I ended up losing several
    weeks of hard work due to no data backup. Do you have any solutions to prevent hackers?


Please enter your comment!
Please enter your name here