Skip to main content

Strings

  • Chapter
  • 411 Accesses

Part of the book series: Springer Professional Computing ((SPC))

Abstract

In this chapter we shall examine the string variable type. Strings are sequences of alphanumeric characters. We have used strings already in one or two of our previous PHP examples, specifically as part of the echo statement. We shall begin by examining how strings are defined in PHP, then examine the different types of strings which are available for us to use. We shall then consider how to join strings together, access individual characters within a string and convert strings to numbers.

This is a preview of subscription content, log in via an institution.

Buying options

Chapter
USD   29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD   39.99
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD   54.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info
Hardcover Book
USD   109.99
Price excludes VAT (USA)
  • Durable hardcover edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Learn about institutional subscriptions

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

Author information

Authors and Affiliations

Authors

Rights and permissions

Reprints and permissions

Copyright information

© 2004 Springer-Verlag London

About this chapter

Cite this chapter

Stobart, S., Vassileiou, M. (2004). Strings. In: PHP and MySQL Manual. Springer Professional Computing. Springer, London. https://doi.org/10.1007/978-0-85729-404-3_8

Download citation

  • DOI: https://doi.org/10.1007/978-0-85729-404-3_8

  • Publisher Name: Springer, London

  • Print ISBN: 978-1-4471-1055-2

  • Online ISBN: 978-0-85729-404-3

  • eBook Packages: Springer Book Archive

Publish with us

Policies and ethics