PHP Classes

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

Recommend this page to a friend!
     
  Info   Example   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 61 All time: 10,474 This week: 660Up
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: 3787205 in Germany Germany
Week rank: 163 Up7 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 (11)  
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 (11)  /  .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

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 100%
Total:61
This week:0
All time:10,474
This week:660Up
User Comments (1)