PHP Classes

PHP Klassen und Funktionen: Classes to show how to use setters and getters

Recommend this page to a friend!
  Info   View files Example   View files View files (11)   DownloadInstall with Composer Download .zip   Reputation   Support forum (1)   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 61 This week: 1All time: 10,433 This week: 560Up
Version License PHP version Categories
klassen-und-funktion 1.0.0Custom (specified...5PHP 5, Language
Description 

Author

This package provides classes to show how to use setters and getters.

It provides two very simple classes that have functions to set and get values of class variables.

Picture of Zamani
Name: Zamani <contact>
Classes: 2 packages by
Country: Germany Germany
Age: ???
All time rank: 3783205 in Germany Germany
Week rank: 411 Up15 in Germany Germany Up

Example

<?php
/**
 * Created by PhpStorm.
 * User: amir.zamani
 * Date: 10.09.18
 * Time: 19:05
 */

include("class_lib.php");
include(
'class_datum.php');

$stefan = new person();
$jimmy = new person();
$stefan->set_name("Stefan Mischook");
$jimmy->set_name("Nick Waddles");

echo
"Stefan's Full name: " . $stefan->get_name() . "<br>";
echo
"Nick's Full name: " . $jimmy->get_name();


echo
"<hr>";


$drzeit = new datum();

// $drzeit->setUts(58578793);

echo $drzeit->getDatum();


Details

Klassen-und-Funktionen-


  Files folder image Files  
File Role Description
Files folder image.idea (6 files)
Plain text file class_datum.php Class Class source
Plain text file class_lib.php Class Class source
Accessible without login Plain text file index.php Example Example script
Accessible without login Plain text file LICENSE Lic. License text
Accessible without login Plain text file README.md Data Read me first

  Files folder image Files  /  .idea  
File Role Description
  Accessible without login Plain text file Klassen-und-Funktion.iml Data Auxiliary data
  Accessible without login Plain text file misc.xml Data Auxiliary data
  Accessible without login Plain text file modules.xml Data Auxiliary data
  Accessible without login Plain text file php.xml Data Auxiliary data
  Accessible without login Plain text file vcs.xml Data Auxiliary data
  Accessible without login Plain text file workspace.xml Data Auxiliary data

 Version Control Unique User Downloads Download Rankings  
 100%
Total:61
This week:1
All time:10,433
This week:560Up
User Comments (1)