Module-1 | Module2 | Module-3 |
---|---|---|
Introduction to Php | Decisions and loops | String |
Handling html forms with Php | function | Array |
Working with file and directories | String matching with regular expression | Generating images with php |
Mini project state management |
-
Introduction to Php
- Open-source language for websites
- Evolution from “Personal Home Page” tools
- Designed by Rasmus Leadoff in 1994
- Straightforward syntax, easy to learn
- Supports Windows, Linux, macOS platforms
- Executes on servers, generating HTML
- PHP 3, 4, and 5 followed by PHP 7 in 2015
- PHP 7 brought new features, improved performance
-
Handling html form with PHP
-
Working with file and directories
- Programming languages offer a wide range of file manipulation capabilities and techniques, including the creation, opening, reading, writing, and closing of files.
File operations are made simple by PHP’s extensive built-in function set for handling files and directories.
File handling operations are made easier by functions like open, filo, write, read, file_get_contents, and file_put_contents.
File Opening and Closing: - The open() method is used to open files; if the function fails, it returns false.
To free up system resources, files should be closed using the filo() method after completing file operations.
Examining Documents: - To read data from files, PHP has functions like file_get_contents, frets, read, and frets. These features enable line-by-line reading of files or full file retrieval
-
Mini project state management
- It involves data storage, retrieval, and user preference preservation based on state.
- Local State: Data controlled within a single component or page.
- Global State: Data shared across multiple components or pages within an app.
- State Administration Strategies vary for managing local and global state.
-
Decisions and loop
- First block: Execute code if condition true; else, execute code in else block.
- Regarding if-else: Triggers specific code if condition true; else, runs different code block.
-
function
-
String matching with regular expression
- Character combinations in strings can be matched using regular expressions, which are patterns.
Identifying Patterns: - Regex makes it possible to match complex patterns inside of strings.
To provide matching rules, patterns can contain quantifiers, meta characters, and literal characters.
Meta-characters: - Meta characters are special characters like. (matches any character) and * (matches zero or more occurrences) that have a reserved meaning in regex.
Classes of Characters: - Anchors designate points in the string, such the line’s start ($) or end
- Quantifiers like *, +, or {NM} specify maximum character or group occurrences.
-
String
- Understand how strings are represented in your programming language. Are they a type de denseness in-degrees out doubter-vouch importer use bibliophile
- Immutable or Mutable: Decides if letters are unchangeable or changeable in programming languages. This impacts how manipulable the strings are.
- Know how to concatenate strings, which is to join two or more strings together. Learn how to extract sub strings from a given string with a sub string.
- Understand how string comparison works, including case-sensitive vs. case-insensitive.
-
Array
- Recognize that an array is a form of data structure that holds a group of elements in memory that are usually of the same type.
- Indexing: Recognize how to use zero-based indexes to retrieve specific elements within an array.
- Length or Size: Be able to ascertain an array’s length or size, or the total number of components it comprises..
- Recognize the distinction between dynamic arrays, whose size is modifiable at runtime, and static arrays, whose size is fixed.
-
Generating images with PHP
- Image Formats: The GD library is compatible with a number of image formats, including BMP, GIF, PNG, and JPEG. Recognize which formats work best for your needs.
- Creating Images: Discover how to make new images from existing files by utilizing techniques like image create from jpeg() and image create true color().
- Drawing forms: Learn how to use image line(), image rectangle(), image ellipse(), and image polygon() to create simple forms on the image canvas, including circles, rectangles, lines, and polygons.
Course Features
- Lectures 0
- Quizzes 0
- Duration 80 hours
- Skill level All levels
- Language English
- Students 45
- Assessments Yes