PHP
This programming language may be used to instruct a computer to perform a task.
Listed below are all of the tasks on Rosetta Code which have been solved using PHP.
This programming language may be used to instruct a computer to perform a task.
Official website |
---|
Execution method: | Compiled (bytecode) |
---|---|
Garbage collected: | Yes |
Parameter passing methods: | By reference, By value |
Type strength: | Weak |
Type checking: | Dynamic |
See Also: |
Your Help Needed
If you know PHP, please write code for some of the tasks not implemented in PHP.
If you know PHP, please write code for some of the tasks not implemented in PHP.
PHP (PHP: Hypertext Preprocessor) is a reflective programming language originally designed for producing dynamic Web pages. PHP is used mainly in server-side application software, but can be used from a command line interface or in standalone graphical applications.
Citations[edit]
Subcategories
This category has the following 4 subcategories, out of 4 total.
Pages in category "PHP"
The following 454 pages are in this category, out of 454 total.
A
- A+B
- Abbreviations, easy
- ABC problem
- Abstract type
- Accumulator factory
- Ackermann function
- Active Directory/Connect
- Active Directory/Search for a user
- Add a variable to a class instance at runtime
- Align columns
- Amicable pairs
- Anagrams
- Anagrams/Deranged anagrams
- Anonymous recursion
- Append a record to the end of a text file
- Apply a callback to an array
- Arbitrary-precision integers (included)
- Arithmetic-geometric mean
- Arithmetic/Integer
- Array concatenation
- Array length
- Arrays
- Assertions
- Associative array/Creation
- Associative array/Iteration
- Associative array/Merging
- Attractive numbers
- Averages/Arithmetic mean
- Averages/Mean angle
- Averages/Mean time of day
- Averages/Median
- Averages/Mode
- Averages/Pythagorean means
- Averages/Root mean square
B
C
- Caesar cipher
- Calendar - for "REAL" programmers
- Call an object method
- Canny edge detector
- Catalan numbers
- Character codes
- Check output device is a terminal
- Check that file exists
- Church numerals
- Classes
- Closures/Value capture
- Collections
- Color of a screen pixel
- Colour bars/Display
- Combinations
- Combinations with repetitions
- Comma quibbling
- Command-line arguments
- Comments
- Compare length of two strings
- Compound data type
- Conditional structures
- Convert decimal number to rational
- Copy a string
- Count in octal
- Count occurrences of a substring
- CRC-32
- Create a file
- Create an HTML table
- CSV data manipulation
- CSV to HTML translation
- Cumulative standard deviation
- Currying
- CUSIP
D
- Damm algorithm
- Date format
- Date manipulation
- Day of the week
- Deal cards for FreeCell
- Deepcopy
- Delegates
- Delete a file
- Department numbers
- Detect division by zero
- Determine if a string is collapsible
- Determine if a string is numeric
- Determine if a string is squeezable
- Dijkstra's algorithm
- Discordian date
- DNS query
- Documentation
- Dot product
- Dynamic variable names
E
- Echo server
- Emirp primes
- Empty directory
- Empty program
- Empty string
- Enforced immutability
- Entropy
- Entropy/Narcissist
- Enumerations
- Environment variables
- Equilibrium index
- Ethiopian multiplication
- Euler's sum of powers conjecture
- Evaluate binomial coefficients
- Even or odd
- Evolutionary algorithm
- Exceptions
- Execute a Markov algorithm
- Execute a system command
- Execute Brain****
- Extract file extension
F
- Factorial
- Factors of a Mersenne number
- Factors of an integer
- Fast Fourier transform
- Fibonacci n-step number sequences
- Fibonacci sequence
- File extension is in extensions list
- File input/output
- File modification time
- File size
- Filter
- Find common directory path
- Find limit of recursion
- Find the last Sunday of each month
- Find the missing permutation
- Find URI in text
- First-class functions
- FizzBuzz
- Flatten a list
- Flow-control structures
- Floyd's triangle
- Floyd-Warshall algorithm
- Forest fire
- Fork
- Formatted numeric output
- Forward difference
- Fractal tree
- FTP
- Function composition
- Function definition
G
H
- Hailstone sequence
- Handle a signal
- Happy numbers
- Hash from two arrays
- Hash join
- Haversine formula
- Hello world/Graphical
- Hello world/Line printer
- Hello world/Newbie
- Hello world/Newline omission
- Hello world/Standard error
- Hello world/Text
- Hello world/Web server
- Here document
- Higher-order functions
- Horner's rule for polynomial evaluation
- Hostname
- HTTP
- HTTPS
- Huffman coding
I
K
L
- Langton's ant
- Largest int from concatenated ints
- Last Friday of each month
- Leap year
- Least common multiple
- Letter frequency
- Levenshtein distance
- Linear congruential generator
- Literals/Floating point
- Literals/Integer
- Literals/String
- Logical operations
- Long multiplication
- Long year
- Longest increasing subsequence
- Longest string challenge
- Look-and-say sequence
- Loop over multiple arrays simultaneously
- Loops/Break
- Loops/Continue
- Loops/Do-while
- Loops/Downward for
- Loops/For
- Loops/For with a specified step
- Loops/Foreach
- Loops/Infinite
- Loops/N plus one half
- Loops/Nested
- Loops/While
- Luhn test of credit card numbers
- LZW compression
M
- Magic 8-ball
- Man or boy test
- Mandelbrot set
- Markov chain text generator
- Matrix transposition
- Matrix with two diagonals
- Maze generation
- MD4
- MD5
- Menu
- Mersenne primes
- Middle three digits
- Miller–Rabin primality test
- Minesweeper game
- Modular exponentiation
- Modular inverse
- Modulinos
- Monads/Writer monad
- Monte Carlo methods
- Monty Hall problem
- Move-to-front algorithm
- Munchausen numbers
- Munching squares
- Mutual recursion
N
O
P
- Palindrome detection
- Pangram checker
- Parameterized SQL statement
- Parsing/RPN calculator algorithm
- Pascal's triangle
- Perfect numbers
- Permutations with repetitions
- Phrase reversals
- Pick random element
- Pig the dice game
- Playing cards
- Pointers and references
- Polymorphic copy
- Polymorphism
- Population count
- Power set
- Primality by trial division
- Priority queue
- Program name
- Program termination
- Proper divisors
- Pythagorean triples
R
- Ramer-Douglas-Peucker line simplification
- Random number generator (included)
- Random numbers
- Range expansion
- Ray-casting algorithm
- Read a configuration file
- Read a file line by line
- Read a specific line from a file
- Read entire file
- Real constants and functions
- Recaman's sequence
- Reduced row echelon form
- Reflection/List methods
- Reflection/List properties
- Regular expressions
- Remove duplicate elements
- Rename a file
- Repeat a string
- Respond to an unknown method call
- Return multiple values
- Reverse a string
- Reverse words in a string
- Rock-paper-scissors
- Roman numerals/Decode
- Roman numerals/Encode
- Rot-13
- RPG attributes generator
- Run-length encoding
- Runtime evaluation
- Runtime evaluation/In an environment
S
- Sattolo cycle
- Search a list
- Search a list of records
- Secure temporary file
- SEDOLs
- Self-describing numbers
- Semordnilap
- Send an unknown method call
- Send email
- Sequence of non-squares
- SHA-1
- SHA-256
- Shell one-liner
- Show ASCII table
- Show the epoch
- Sierpinski carpet
- Sierpinski triangle
- Sieve of Eratosthenes
- Singleton
- Sleep
- SOAP
- Sockets
- Sort an integer array
- Sort stability
- Sort three variables
- Sort using a custom comparator
- Sorting algorithms/Bead sort
- Sorting algorithms/Bogosort
- Sorting algorithms/Bubble sort
- Sorting algorithms/Cocktail sort
- Sorting algorithms/Comb sort
- Sorting algorithms/Counting sort
- Sorting algorithms/Gnome sort
- Sorting algorithms/Insertion sort
- Sorting algorithms/Merge sort
- Sorting algorithms/Patience sort
- Sorting algorithms/Permutation sort
- Sorting algorithms/Quicksort
- Sorting algorithms/Selection sort
- Sorting algorithms/Shell sort
- Sorting algorithms/Stooge sort
- Sorting algorithms/Strand sort
- Soundex
- Speech synthesis
- SQL-based authentication
- Stack
- Stack traces
- Straddling checkerboard
- String case
- String concatenation
- String interpolation (included)
- String length
- String matching
- Strip a set of characters from a string
- Strip block comments
- Strip whitespace from a string/Top and tail
- Substitution cipher
- Substring
- Substring/Top and tail
- Sudoku
- Sum and product of an array
- Sum digits of an integer
- Sum multiples of 3 and 5
- Sum of a series
- Sum of squares
- Sutherland-Hodgman polygon clipping
- Symmetric difference
- System time
T
- Table creation/Postal addresses
- Take notes on the command line
- Temperature conversion
- Terminal control/Cursor positioning
- Terminal control/Ringing the terminal bell
- Ternary logic
- Text between
- Text processing/2
- Text processing/Max licenses in use
- The Twelve Days of Christmas
- Thue-Morse
- Tic-tac-toe
- Tokenize a string
- Top rank per group
- Towers of Hanoi
- Tree traversal
- Trigonometric functions
- Type detection