Intro to Built-in PHP Functions
Lesson 1 of 1
  1. 1

    If you’ve been paying attention so far, you might have picked up a theme in programming—shortcuts. Defining our own functions gives us an easier way to repeat similar code throughout a program. B…

  2. 2

    PHP includes useful built-in functions for getting information about variables. The […] function takes a variable as its argument and retur…

  3. 3

    We can find PHP built-in functions to accomplish common tasks. Need to reverse a string? There’s a built-in function for that! The [ […] function](https://www.php.net/manual/en/function.strrev

  4. 4

    A substring is a portion of a string. For example, […] is a substring of the string […] and […] is a substring of the string […] . Manipulating strings is very common in programmin…

  5. 5

    Another common task in programming is working with numbers, so it shouldn’t surprise us that PHP comes with some handy built-in functions for working with numbers. The [ […] function](https://…

  6. 6

    Generating random numbers may not seem obviously useful, but, as your programs become increasingly complicated, you’ll see this is actually a common task—for example to randomize data for testing. …

  7. 7

    In order to understand built-in functions we’ve never used before, we’ll want to get comfortable understanding how it is represented in the documentation. Documentation typically includes: + The na…

  8. 8

    In order to find out about built-in functions (and other language features), you’ll want to get comfortable exploring the PHP documentation. The docs ca…

  9. 9

    In this lesson, you learned that built-in functions are functions provided by PHP. We learned about several specific built-in functions. We also learned how to understand a function’s description i…

What you'll create

Portfolio projects that showcase your new skills

Pro Logo

How you'll master it

Stress-test your knowledge with quizzes that help commit syntax to memory

Pro Logo