Challenge 1: Sentence Formatting Using PCNTL

Test your knowledge by writing code to encode and format sentences using PCNTL extension.

Problem statement

Write a program using the ext-pcntl routines that encodes sentences and formats them according to some provided rules.

Formatting rules

  • Remove any dots or underscores from the start.
  • Append a period at the end.
  • Convert any starting lowercase character to its uppercase version.

Example sentences

Consider the list of sentences below to apply the encoding and the formatting:

Get hands-on with 1400+ tech skills courses.