SlideShare a Scribd company logo
Introduction to PHP 
Initializing Arrays 
• No of ways to initialize the array. 
– For e.g. 
• $ncststaff[] = “amrish”; 
$ncststaff[] = “murali”; 
$ncststaff[] = “narayan”; 
• $ncststaff[123] = “amrish”; 
$ncststaff[122] = “murali”; 
$ncststaff[121] = “narayan”; 
• $ncststaff = array (“amrish”, “murali”, “narayan”); 
– to change the indices of the array use => operator. 
A. Chaubal 1
Introduction to PHP 
Accessing the Array Elements 
• The elements in the array can be accessed by 
using the list and each constructs 
– for e.g 
while(list($key,$value) = each(countries)) 
echo(“$value<BR>n”); 
– current(<arrayname>) gives the current value 
being accessed. key(<arrayname>) gives the index 
of the current element that is being accessed. 
– prev(<arrayname>) gives the previous element. 
– next(<arrayname>) gives the next element. 
A. Chaubal 2
Introduction to PHP 
Accessing the Array Elements (cont.) 
– Array_walk(<arrayname>,<function_name>) 
• function_name is the function that is written for every 
member of an array. 
• For e.g 
$ncststaff = array (“amrish”, “murali”, “narayan”); 
array_walk ($ncststaff, printstaff); 
// function to print each element of the array 
function printstaff($names) { 
echo “<B>$names</B><BR>n”; 
} 
A. Chaubal 3
Introduction to PHP 
Arrays (cont.) 
• $ncststaff = array (“dake” => array(“amrish”, “lakshana”, “venkat”), 
“spc” => array(“narayan”, “murali”,“prasad”)); 
– creates a two dimensional array. 
• Sorting Functions 
– sort() : sorts the elements in the numeric and 
alphabetical order. 
– rsort() : sorts the elements in the reverse order. 
– asort() : sorts the elements in the array without 
changing the indices. 
– ksort() : sorts the arrays by key. 
A. Chaubal 4
Introduction to PHP 
Classes 
• Class is a template of an object and includes 
the properties and methods that describe an 
object and behavior. 
• Class in PHP is defined using class statement. 
A. Chaubal 5
Introduction to PHP Classes (cont.) 
• For e.g 
<? 
class company { 
// define the properties 
var $companyname; 
// define the methods 
function company($cname) { 
$this->companyname = $cname; 
} 
function getnames($idcode) { 
//return the name of the employee for the required idcode 
} 
} 
?> 
A. Chaubal 6
Introduction to PHP 
PHP Richness 
• PHP comes with myriad of options i.e. 
supports several APIs and interfaces to other 
programming tools such as 
– Database connectivity. 
– LDAP 
– XML 
– Mail protocols such as IMAP, SMTP 
– Image functions 
etc…. 
A. Chaubal 7
Introduction to PHP 
Support for Regular Expressions 
• Not pretty things to look at and work with. 
– E.g. ^.+@.+..+$ 
• PHP takes over the headache from the 
programmers for explicitly coding for pattern 
matching. 
• Functions: 
– ereg() and eregi() 
– ereg_replace() & eregi_replace() 
– split() 
A. Chaubal 8
Introduction to PHP 
Image Generation & Manipulation 
• PHP offers powerful set of functions for 
generating and manipulating the images. 
– Rendering regular geometric figures, modifying 
images 
– manipulate text, font and color and even the pixels 
in the image. 
• ….creating the images on the fly. 
A. Chaubal 9
Introduction to PHP 
Image Generation & Manipulation 
(cont.) 
• PHP uses the GD library for the most of the image 
functionality that it offers. 
• GD library is used for generating the two-dimensional 
graphics. 
• PHP API’s provides us with functions to: 
– Create, delete, resize and modify images. 
– Draw basic geometric figures 
– Manipulate text and fonts 
– Manipulate colors 
– Interlace and manipulate pixels 
– Handle PostScript files 
A. Chaubal 10
Introduction to PHP 
Mailing functions 
• Sending E-Mails 
– Mail() 
• Used to send simple text messages. 
• Depends on the local mail delivery system. 
– Using SMTP 
• Accepts the e-mail for every recipient and goes through trouble 
of delivering the e-mails. 
• Receiving E-Mails 
– PHP works out well with the IMAP protocol. 
– Rich set of support functions 
• Imap_open, impa_delete, imap_close, imap_mail_copy, 
imap_mail_move etc. 
A. Chaubal 11
Introduction to PHP 
PHP-Database Connectivity 
• Supports APIs for accessing large number of 
databases. 
• ODBC is a standard API for accessing a 
database that has PHP support. 
A. Chaubal 12
Introduction to PHP 
PHP-Database Connectivity 
• Some of Oracle 8.x functions. 
– OCILogon 
– OCILogoff 
– OCIParse 
– OCIFetch; OCIFetchInto; OCIFetchStatement 
– OCIExecute 
– OCIFreeStatement 
A. Chaubal 13
Introduction to PHP 
LDAP Support in PHP 
• PHP provides LDAP API’s that allows the 
programmers to create LDAP clients; by 
providing transparent access to backend LDAP 
directory servers. 
– For e.g. 
• Web based e-mail client. 
• Telephone Directory. 
A. Chaubal 14
Introduction to PHP 
XML Support in PHP 
• PHP supports a set of functions that can be 
used for writing PHP-based XML applications. 
• These functions are used for parsing well 
formed XML document. 
A. Chaubal 15
Introduction to PHP 
References 
• Professional PHP programming 
– By Jesus Castagnetto, Chris Schollo et al 
• www.phpbuilder.com 
• www.php.net 
A. Chaubal 16
Introduction to PHP 
THANK YOU 
A. Chaubal 17

More Related Content

What's hot

SE 20016 - programming languages landscape.
SE 20016 - programming languages landscape.SE 20016 - programming languages landscape.
SE 20016 - programming languages landscape.
Ruslan Shevchenko
 
Bioinformatics p1-perl-introduction v2013
Bioinformatics p1-perl-introduction v2013Bioinformatics p1-perl-introduction v2013
Bioinformatics p1-perl-introduction v2013
Prof. Wim Van Criekinge
 
Scala-Gopher: CSP-style programming techniques with idiomatic Scala.
Scala-Gopher: CSP-style programming techniques with idiomatic Scala.Scala-Gopher: CSP-style programming techniques with idiomatic Scala.
Scala-Gopher: CSP-style programming techniques with idiomatic Scala.
Ruslan Shevchenko
 
Apache Velocity
Apache Velocity Apache Velocity
Apache Velocity
yesprakash
 
Z ray plugins for dummies
Z ray plugins for dummiesZ ray plugins for dummies
Z ray plugins for dummies
Dmitry Zbarski
 
PHP Unit 3 functions_in_php_2
PHP Unit 3 functions_in_php_2PHP Unit 3 functions_in_php_2
PHP Unit 3 functions_in_php_2
Kumar
 
Building a Tagless Final DSL for WebGL
Building a Tagless Final DSL for WebGLBuilding a Tagless Final DSL for WebGL
Building a Tagless Final DSL for WebGL
Luka Jacobowitz
 
Intro to Perl and Bioperl
Intro to Perl and BioperlIntro to Perl and Bioperl
es6
es6es6
Introduction to Perl and BioPerl
Introduction to Perl and BioPerlIntroduction to Perl and BioPerl
Introduction to Perl and BioPerl
Bioinformatics and Computational Biosciences Branch
 
Intro to OOP and new features in PHP 5.3
Intro to OOP and new features in PHP 5.3Intro to OOP and new features in PHP 5.3
Intro to OOP and new features in PHP 5.3
Adam Culp
 
Class 3 - PHP Functions
Class 3 - PHP FunctionsClass 3 - PHP Functions
Class 3 - PHP Functions
Ahmed Swilam
 
From content to search: speed-dating Apache Solr (ApacheCON 2018)
From content to search: speed-dating Apache Solr (ApacheCON 2018)From content to search: speed-dating Apache Solr (ApacheCON 2018)
From content to search: speed-dating Apache Solr (ApacheCON 2018)
Alexandre Rafalovitch
 
Php Chapter 2 3 Training
Php Chapter 2 3 TrainingPhp Chapter 2 3 Training
Php Chapter 2 3 Training
Chris Chubb
 
PHP Basics
PHP BasicsPHP Basics
PHP Basics
Muthuganesh S
 
Php my sql - functions - arrays - tutorial - programmerblog.net
Php my sql - functions - arrays - tutorial - programmerblog.netPhp my sql - functions - arrays - tutorial - programmerblog.net
Php my sql - functions - arrays - tutorial - programmerblog.net
Programmer Blog
 
Introduction to web and php mysql
Introduction to web and php mysqlIntroduction to web and php mysql
Introduction to web and php mysql
Programmer Blog
 
Object-Oriented Programming with PHP (part 1)
Object-Oriented Programming with PHP (part 1)Object-Oriented Programming with PHP (part 1)
Object-Oriented Programming with PHP (part 1)
Bozhidar Boshnakov
 
Php i basic chapter 3 (afifah rosli's conflicted copy 2013-04-23)
Php i basic chapter 3 (afifah rosli's conflicted copy 2013-04-23)Php i basic chapter 3 (afifah rosli's conflicted copy 2013-04-23)
Php i basic chapter 3 (afifah rosli's conflicted copy 2013-04-23)
Muhamad Al Imran
 
Php i basic chapter 3 (syahir chaer's conflicted copy 2013-04-22)
Php i basic chapter 3 (syahir chaer's conflicted copy 2013-04-22)Php i basic chapter 3 (syahir chaer's conflicted copy 2013-04-22)
Php i basic chapter 3 (syahir chaer's conflicted copy 2013-04-22)
Muhamad Al Imran
 

What's hot (20)

SE 20016 - programming languages landscape.
SE 20016 - programming languages landscape.SE 20016 - programming languages landscape.
SE 20016 - programming languages landscape.
 
Bioinformatics p1-perl-introduction v2013
Bioinformatics p1-perl-introduction v2013Bioinformatics p1-perl-introduction v2013
Bioinformatics p1-perl-introduction v2013
 
Scala-Gopher: CSP-style programming techniques with idiomatic Scala.
Scala-Gopher: CSP-style programming techniques with idiomatic Scala.Scala-Gopher: CSP-style programming techniques with idiomatic Scala.
Scala-Gopher: CSP-style programming techniques with idiomatic Scala.
 
Apache Velocity
Apache Velocity Apache Velocity
Apache Velocity
 
Z ray plugins for dummies
Z ray plugins for dummiesZ ray plugins for dummies
Z ray plugins for dummies
 
PHP Unit 3 functions_in_php_2
PHP Unit 3 functions_in_php_2PHP Unit 3 functions_in_php_2
PHP Unit 3 functions_in_php_2
 
Building a Tagless Final DSL for WebGL
Building a Tagless Final DSL for WebGLBuilding a Tagless Final DSL for WebGL
Building a Tagless Final DSL for WebGL
 
Intro to Perl and Bioperl
Intro to Perl and BioperlIntro to Perl and Bioperl
Intro to Perl and Bioperl
 
es6
es6es6
es6
 
Introduction to Perl and BioPerl
Introduction to Perl and BioPerlIntroduction to Perl and BioPerl
Introduction to Perl and BioPerl
 
Intro to OOP and new features in PHP 5.3
Intro to OOP and new features in PHP 5.3Intro to OOP and new features in PHP 5.3
Intro to OOP and new features in PHP 5.3
 
Class 3 - PHP Functions
Class 3 - PHP FunctionsClass 3 - PHP Functions
Class 3 - PHP Functions
 
From content to search: speed-dating Apache Solr (ApacheCON 2018)
From content to search: speed-dating Apache Solr (ApacheCON 2018)From content to search: speed-dating Apache Solr (ApacheCON 2018)
From content to search: speed-dating Apache Solr (ApacheCON 2018)
 
Php Chapter 2 3 Training
Php Chapter 2 3 TrainingPhp Chapter 2 3 Training
Php Chapter 2 3 Training
 
PHP Basics
PHP BasicsPHP Basics
PHP Basics
 
Php my sql - functions - arrays - tutorial - programmerblog.net
Php my sql - functions - arrays - tutorial - programmerblog.netPhp my sql - functions - arrays - tutorial - programmerblog.net
Php my sql - functions - arrays - tutorial - programmerblog.net
 
Introduction to web and php mysql
Introduction to web and php mysqlIntroduction to web and php mysql
Introduction to web and php mysql
 
Object-Oriented Programming with PHP (part 1)
Object-Oriented Programming with PHP (part 1)Object-Oriented Programming with PHP (part 1)
Object-Oriented Programming with PHP (part 1)
 
Php i basic chapter 3 (afifah rosli's conflicted copy 2013-04-23)
Php i basic chapter 3 (afifah rosli's conflicted copy 2013-04-23)Php i basic chapter 3 (afifah rosli's conflicted copy 2013-04-23)
Php i basic chapter 3 (afifah rosli's conflicted copy 2013-04-23)
 
Php i basic chapter 3 (syahir chaer's conflicted copy 2013-04-22)
Php i basic chapter 3 (syahir chaer's conflicted copy 2013-04-22)Php i basic chapter 3 (syahir chaer's conflicted copy 2013-04-22)
Php i basic chapter 3 (syahir chaer's conflicted copy 2013-04-22)
 

Viewers also liked

hi there
hi therehi there
Prueba bartolo
Prueba bartoloPrueba bartolo
Prueba bartolo
Cristian Miranda
 
lanre's CV2
lanre's CV2lanre's CV2
lanre's CV2
Aremu olanrewaju
 
SPC Severe Thunderstorm Watch 236
SPC Severe Thunderstorm Watch 236SPC Severe Thunderstorm Watch 236
SPC Severe Thunderstorm Watch 236
dallasnewscast
 
Norway: Legal and regulatory CCS framework
Norway: Legal and regulatory CCS frameworkNorway: Legal and regulatory CCS framework
Norway: Legal and regulatory CCS framework
Global CCS Institute
 
Verge
VergeVerge
Marine drive uni pole
Marine drive uni poleMarine drive uni pole
Marine drive uni pole
bharat_patel
 
5796 5800.output
5796 5800.output5796 5800.output
5796 5800.output
j1075017
 
3rd meeting in Greece
3rd meeting in Greece3rd meeting in Greece
3rd meeting in Greece
Goetheschule
 
Task 1 uses and purposes of digital
Task 1   uses and purposes of digitalTask 1   uses and purposes of digital
Task 1 uses and purposes of digital
Jordan Lyn
 
History of automobiles 2015
History of automobiles 2015History of automobiles 2015
History of automobiles 2015
sandhyakirana
 
Pyrexia of unknown origin
Pyrexia of unknown originPyrexia of unknown origin
Pyrexia of unknown origin
KAVI PRIYA
 
Strongyloidiasis
StrongyloidiasisStrongyloidiasis
Strongyloidiasis
DrRadhakrishna Sahu
 
GROOMING ASSIGNMENT
GROOMING ASSIGNMENTGROOMING ASSIGNMENT
GROOMING ASSIGNMENT
Sumaiyya Sardar
 
презентации 3,4,5,6,7
презентации 3,4,5,6,7презентации 3,4,5,6,7
презентации 3,4,5,6,7
Nursultan Batyrkanov
 

Viewers also liked (15)

hi there
hi therehi there
hi there
 
Prueba bartolo
Prueba bartoloPrueba bartolo
Prueba bartolo
 
lanre's CV2
lanre's CV2lanre's CV2
lanre's CV2
 
SPC Severe Thunderstorm Watch 236
SPC Severe Thunderstorm Watch 236SPC Severe Thunderstorm Watch 236
SPC Severe Thunderstorm Watch 236
 
Norway: Legal and regulatory CCS framework
Norway: Legal and regulatory CCS frameworkNorway: Legal and regulatory CCS framework
Norway: Legal and regulatory CCS framework
 
Verge
VergeVerge
Verge
 
Marine drive uni pole
Marine drive uni poleMarine drive uni pole
Marine drive uni pole
 
5796 5800.output
5796 5800.output5796 5800.output
5796 5800.output
 
3rd meeting in Greece
3rd meeting in Greece3rd meeting in Greece
3rd meeting in Greece
 
Task 1 uses and purposes of digital
Task 1   uses and purposes of digitalTask 1   uses and purposes of digital
Task 1 uses and purposes of digital
 
History of automobiles 2015
History of automobiles 2015History of automobiles 2015
History of automobiles 2015
 
Pyrexia of unknown origin
Pyrexia of unknown originPyrexia of unknown origin
Pyrexia of unknown origin
 
Strongyloidiasis
StrongyloidiasisStrongyloidiasis
Strongyloidiasis
 
GROOMING ASSIGNMENT
GROOMING ASSIGNMENTGROOMING ASSIGNMENT
GROOMING ASSIGNMENT
 
презентации 3,4,5,6,7
презентации 3,4,5,6,7презентации 3,4,5,6,7
презентации 3,4,5,6,7
 

Similar to Initializing arrays

Introduction to php
Introduction to phpIntroduction to php
Introduction to php
Anjan Banda
 
Php
PhpPhp
Hsc IT 5. Server-Side Scripting (PHP).pdf
Hsc IT 5. Server-Side Scripting (PHP).pdfHsc IT 5. Server-Side Scripting (PHP).pdf
Hsc IT 5. Server-Side Scripting (PHP).pdf
AAFREEN SHAIKH
 
rtwerewr
rtwerewrrtwerewr
rtwerewr
esolinhighered
 
05php
05php05php
05php
05php05php
Php Intermediate
Php IntermediatePhp Intermediate
Php Intermediate
Jamshid Hashimi
 
05php
05php05php
php fundamental
php fundamentalphp fundamental
php fundamental
zalatarunk
 
php
phpphp
Php introduction with history of php
Php introduction with history of phpPhp introduction with history of php
Php introduction with history of php
pooja bhandari
 
WEB-MODULE 4.pdf
WEB-MODULE 4.pdfWEB-MODULE 4.pdf
WEB-MODULE 4.pdf
Deepika A B
 
Php Introduction nikul
Php Introduction nikulPhp Introduction nikul
Php Introduction nikul
Nikul Shah
 
Introduction to php
Introduction to phpIntroduction to php
Introduction to php
KIRAN KUMAR SILIVERI
 
Php Basics
Php BasicsPhp Basics
Basics PHP
Basics PHPBasics PHP
Php i basic chapter 3 (mardhiah kamaludin's conflicted copy 2013-04-23)
Php i basic chapter 3 (mardhiah kamaludin's conflicted copy 2013-04-23)Php i basic chapter 3 (mardhiah kamaludin's conflicted copy 2013-04-23)
Php i basic chapter 3 (mardhiah kamaludin's conflicted copy 2013-04-23)
Muhamad Al Imran
 
MIND sweeping introduction to PHP
MIND sweeping introduction to PHPMIND sweeping introduction to PHP
MIND sweeping introduction to PHP
BUDNET
 
Code for Startup MVP (Ruby on Rails) Session 2
Code for Startup MVP (Ruby on Rails) Session 2Code for Startup MVP (Ruby on Rails) Session 2
Code for Startup MVP (Ruby on Rails) Session 2
Henry S
 
Website designing company_in_delhi_phpwebdevelopment
Website designing company_in_delhi_phpwebdevelopmentWebsite designing company_in_delhi_phpwebdevelopment
Website designing company_in_delhi_phpwebdevelopment
Css Founder
 

Similar to Initializing arrays (20)

Introduction to php
Introduction to phpIntroduction to php
Introduction to php
 
Php
PhpPhp
Php
 
Hsc IT 5. Server-Side Scripting (PHP).pdf
Hsc IT 5. Server-Side Scripting (PHP).pdfHsc IT 5. Server-Side Scripting (PHP).pdf
Hsc IT 5. Server-Side Scripting (PHP).pdf
 
rtwerewr
rtwerewrrtwerewr
rtwerewr
 
05php
05php05php
05php
 
05php
05php05php
05php
 
Php Intermediate
Php IntermediatePhp Intermediate
Php Intermediate
 
05php
05php05php
05php
 
php fundamental
php fundamentalphp fundamental
php fundamental
 
php
phpphp
php
 
Php introduction with history of php
Php introduction with history of phpPhp introduction with history of php
Php introduction with history of php
 
WEB-MODULE 4.pdf
WEB-MODULE 4.pdfWEB-MODULE 4.pdf
WEB-MODULE 4.pdf
 
Php Introduction nikul
Php Introduction nikulPhp Introduction nikul
Php Introduction nikul
 
Introduction to php
Introduction to phpIntroduction to php
Introduction to php
 
Php Basics
Php BasicsPhp Basics
Php Basics
 
Basics PHP
Basics PHPBasics PHP
Basics PHP
 
Php i basic chapter 3 (mardhiah kamaludin's conflicted copy 2013-04-23)
Php i basic chapter 3 (mardhiah kamaludin's conflicted copy 2013-04-23)Php i basic chapter 3 (mardhiah kamaludin's conflicted copy 2013-04-23)
Php i basic chapter 3 (mardhiah kamaludin's conflicted copy 2013-04-23)
 
MIND sweeping introduction to PHP
MIND sweeping introduction to PHPMIND sweeping introduction to PHP
MIND sweeping introduction to PHP
 
Code for Startup MVP (Ruby on Rails) Session 2
Code for Startup MVP (Ruby on Rails) Session 2Code for Startup MVP (Ruby on Rails) Session 2
Code for Startup MVP (Ruby on Rails) Session 2
 
Website designing company_in_delhi_phpwebdevelopment
Website designing company_in_delhi_phpwebdevelopmentWebsite designing company_in_delhi_phpwebdevelopment
Website designing company_in_delhi_phpwebdevelopment
 

More from Synapseindiappsdevelopment

Synapse india elance top in demand in it skills
Synapse india elance top in demand in it skillsSynapse india elance top in demand in it skills
Synapse india elance top in demand in it skills
Synapseindiappsdevelopment
 
SynapseIndia dotnet web development architecture module
SynapseIndia dotnet web development architecture moduleSynapseIndia dotnet web development architecture module
SynapseIndia dotnet web development architecture module
Synapseindiappsdevelopment
 
SynapseIndia dotnet module development part 1
SynapseIndia  dotnet module development part 1SynapseIndia  dotnet module development part 1
SynapseIndia dotnet module development part 1
Synapseindiappsdevelopment
 
SynapseIndia dotnet framework library
SynapseIndia  dotnet framework librarySynapseIndia  dotnet framework library
SynapseIndia dotnet framework library
Synapseindiappsdevelopment
 
SynapseIndia dotnet development platform overview
SynapseIndia  dotnet development platform overviewSynapseIndia  dotnet development platform overview
SynapseIndia dotnet development platform overview
Synapseindiappsdevelopment
 
SynapseIndia dotnet development framework
SynapseIndia  dotnet development frameworkSynapseIndia  dotnet development framework
SynapseIndia dotnet development framework
Synapseindiappsdevelopment
 
SynapseIndia dotnet web applications development
SynapseIndia  dotnet web applications developmentSynapseIndia  dotnet web applications development
SynapseIndia dotnet web applications development
Synapseindiappsdevelopment
 
SynapseIndia dotnet website security development
SynapseIndia  dotnet website security developmentSynapseIndia  dotnet website security development
SynapseIndia dotnet website security development
Synapseindiappsdevelopment
 
SynapseIndia mobile build apps management
SynapseIndia mobile build apps managementSynapseIndia mobile build apps management
SynapseIndia mobile build apps management
Synapseindiappsdevelopment
 
SynapseIndia mobile apps deployment framework internal architecture
SynapseIndia mobile apps deployment framework internal architectureSynapseIndia mobile apps deployment framework internal architecture
SynapseIndia mobile apps deployment framework internal architecture
Synapseindiappsdevelopment
 
SynapseIndia java and .net development
SynapseIndia java and .net developmentSynapseIndia java and .net development
SynapseIndia java and .net development
Synapseindiappsdevelopment
 
SynapseIndia dotnet development panel control
SynapseIndia dotnet development panel controlSynapseIndia dotnet development panel control
SynapseIndia dotnet development panel control
Synapseindiappsdevelopment
 
SynapseIndia dotnet development ajax client library
SynapseIndia dotnet development ajax client librarySynapseIndia dotnet development ajax client library
SynapseIndia dotnet development ajax client library
Synapseindiappsdevelopment
 
SynapseIndia php web development
SynapseIndia php web developmentSynapseIndia php web development
SynapseIndia php web development
Synapseindiappsdevelopment
 
SynapseIndia mobile apps architecture
SynapseIndia mobile apps architectureSynapseIndia mobile apps architecture
SynapseIndia mobile apps architecture
Synapseindiappsdevelopment
 
SynapseIndia mobile apps deployment framework architecture
SynapseIndia mobile apps deployment framework architectureSynapseIndia mobile apps deployment framework architecture
SynapseIndia mobile apps deployment framework architecture
Synapseindiappsdevelopment
 
SynapseIndia mobile apps
SynapseIndia mobile appsSynapseIndia mobile apps
SynapseIndia mobile apps
Synapseindiappsdevelopment
 
SynapseIndia dotnet development
SynapseIndia dotnet developmentSynapseIndia dotnet development
SynapseIndia dotnet development
Synapseindiappsdevelopment
 
SynapseIndia dotnet client library Development
SynapseIndia dotnet client library DevelopmentSynapseIndia dotnet client library Development
SynapseIndia dotnet client library Development
Synapseindiappsdevelopment
 
SynapseIndia creating asp controls programatically development
SynapseIndia creating asp controls programatically developmentSynapseIndia creating asp controls programatically development
SynapseIndia creating asp controls programatically development
Synapseindiappsdevelopment
 

More from Synapseindiappsdevelopment (20)

Synapse india elance top in demand in it skills
Synapse india elance top in demand in it skillsSynapse india elance top in demand in it skills
Synapse india elance top in demand in it skills
 
SynapseIndia dotnet web development architecture module
SynapseIndia dotnet web development architecture moduleSynapseIndia dotnet web development architecture module
SynapseIndia dotnet web development architecture module
 
SynapseIndia dotnet module development part 1
SynapseIndia  dotnet module development part 1SynapseIndia  dotnet module development part 1
SynapseIndia dotnet module development part 1
 
SynapseIndia dotnet framework library
SynapseIndia  dotnet framework librarySynapseIndia  dotnet framework library
SynapseIndia dotnet framework library
 
SynapseIndia dotnet development platform overview
SynapseIndia  dotnet development platform overviewSynapseIndia  dotnet development platform overview
SynapseIndia dotnet development platform overview
 
SynapseIndia dotnet development framework
SynapseIndia  dotnet development frameworkSynapseIndia  dotnet development framework
SynapseIndia dotnet development framework
 
SynapseIndia dotnet web applications development
SynapseIndia  dotnet web applications developmentSynapseIndia  dotnet web applications development
SynapseIndia dotnet web applications development
 
SynapseIndia dotnet website security development
SynapseIndia  dotnet website security developmentSynapseIndia  dotnet website security development
SynapseIndia dotnet website security development
 
SynapseIndia mobile build apps management
SynapseIndia mobile build apps managementSynapseIndia mobile build apps management
SynapseIndia mobile build apps management
 
SynapseIndia mobile apps deployment framework internal architecture
SynapseIndia mobile apps deployment framework internal architectureSynapseIndia mobile apps deployment framework internal architecture
SynapseIndia mobile apps deployment framework internal architecture
 
SynapseIndia java and .net development
SynapseIndia java and .net developmentSynapseIndia java and .net development
SynapseIndia java and .net development
 
SynapseIndia dotnet development panel control
SynapseIndia dotnet development panel controlSynapseIndia dotnet development panel control
SynapseIndia dotnet development panel control
 
SynapseIndia dotnet development ajax client library
SynapseIndia dotnet development ajax client librarySynapseIndia dotnet development ajax client library
SynapseIndia dotnet development ajax client library
 
SynapseIndia php web development
SynapseIndia php web developmentSynapseIndia php web development
SynapseIndia php web development
 
SynapseIndia mobile apps architecture
SynapseIndia mobile apps architectureSynapseIndia mobile apps architecture
SynapseIndia mobile apps architecture
 
SynapseIndia mobile apps deployment framework architecture
SynapseIndia mobile apps deployment framework architectureSynapseIndia mobile apps deployment framework architecture
SynapseIndia mobile apps deployment framework architecture
 
SynapseIndia mobile apps
SynapseIndia mobile appsSynapseIndia mobile apps
SynapseIndia mobile apps
 
SynapseIndia dotnet development
SynapseIndia dotnet developmentSynapseIndia dotnet development
SynapseIndia dotnet development
 
SynapseIndia dotnet client library Development
SynapseIndia dotnet client library DevelopmentSynapseIndia dotnet client library Development
SynapseIndia dotnet client library Development
 
SynapseIndia creating asp controls programatically development
SynapseIndia creating asp controls programatically developmentSynapseIndia creating asp controls programatically development
SynapseIndia creating asp controls programatically development
 

Recently uploaded

Video Streaming: Then, Now, and in the Future
Video Streaming: Then, Now, and in the FutureVideo Streaming: Then, Now, and in the Future
Video Streaming: Then, Now, and in the Future
Alpen-Adria-Universität
 
UiPath Test Automation using UiPath Test Suite series, part 5
UiPath Test Automation using UiPath Test Suite series, part 5UiPath Test Automation using UiPath Test Suite series, part 5
UiPath Test Automation using UiPath Test Suite series, part 5
DianaGray10
 
GraphSummit Singapore | The Art of the Possible with Graph - Q2 2024
GraphSummit Singapore | The Art of the  Possible with Graph - Q2 2024GraphSummit Singapore | The Art of the  Possible with Graph - Q2 2024
GraphSummit Singapore | The Art of the Possible with Graph - Q2 2024
Neo4j
 
20240605 QFM017 Machine Intelligence Reading List May 2024
20240605 QFM017 Machine Intelligence Reading List May 202420240605 QFM017 Machine Intelligence Reading List May 2024
20240605 QFM017 Machine Intelligence Reading List May 2024
Matthew Sinclair
 
Introduction to CHERI technology - Cybersecurity
Introduction to CHERI technology - CybersecurityIntroduction to CHERI technology - Cybersecurity
Introduction to CHERI technology - Cybersecurity
mikeeftimakis1
 
GraphSummit Singapore | Graphing Success: Revolutionising Organisational Stru...
GraphSummit Singapore | Graphing Success: Revolutionising Organisational Stru...GraphSummit Singapore | Graphing Success: Revolutionising Organisational Stru...
GraphSummit Singapore | Graphing Success: Revolutionising Organisational Stru...
Neo4j
 
20240609 QFM020 Irresponsible AI Reading List May 2024
20240609 QFM020 Irresponsible AI Reading List May 202420240609 QFM020 Irresponsible AI Reading List May 2024
20240609 QFM020 Irresponsible AI Reading List May 2024
Matthew Sinclair
 
20 Comprehensive Checklist of Designing and Developing a Website
20 Comprehensive Checklist of Designing and Developing a Website20 Comprehensive Checklist of Designing and Developing a Website
20 Comprehensive Checklist of Designing and Developing a Website
Pixlogix Infotech
 
みなさんこんにちはこれ何文字まで入るの?40文字以下不可とか本当に意味わからないけどこれ限界文字数書いてないからマジでやばい文字数いけるんじゃないの?えこ...
みなさんこんにちはこれ何文字まで入るの?40文字以下不可とか本当に意味わからないけどこれ限界文字数書いてないからマジでやばい文字数いけるんじゃないの?えこ...みなさんこんにちはこれ何文字まで入るの?40文字以下不可とか本当に意味わからないけどこれ限界文字数書いてないからマジでやばい文字数いけるんじゃないの?えこ...
みなさんこんにちはこれ何文字まで入るの?40文字以下不可とか本当に意味わからないけどこれ限界文字数書いてないからマジでやばい文字数いけるんじゃないの?えこ...
名前 です男
 
Essentials of Automations: The Art of Triggers and Actions in FME
Essentials of Automations: The Art of Triggers and Actions in FMEEssentials of Automations: The Art of Triggers and Actions in FME
Essentials of Automations: The Art of Triggers and Actions in FME
Safe Software
 
Communications Mining Series - Zero to Hero - Session 1
Communications Mining Series - Zero to Hero - Session 1Communications Mining Series - Zero to Hero - Session 1
Communications Mining Series - Zero to Hero - Session 1
DianaGray10
 
Removing Uninteresting Bytes in Software Fuzzing
Removing Uninteresting Bytes in Software FuzzingRemoving Uninteresting Bytes in Software Fuzzing
Removing Uninteresting Bytes in Software Fuzzing
Aftab Hussain
 
How to Get CNIC Information System with Paksim Ga.pptx
How to Get CNIC Information System with Paksim Ga.pptxHow to Get CNIC Information System with Paksim Ga.pptx
How to Get CNIC Information System with Paksim Ga.pptx
danishmna97
 
Monitoring Java Application Security with JDK Tools and JFR Events
Monitoring Java Application Security with JDK Tools and JFR EventsMonitoring Java Application Security with JDK Tools and JFR Events
Monitoring Java Application Security with JDK Tools and JFR Events
Ana-Maria Mihalceanu
 
GraphSummit Singapore | Enhancing Changi Airport Group's Passenger Experience...
GraphSummit Singapore | Enhancing Changi Airport Group's Passenger Experience...GraphSummit Singapore | Enhancing Changi Airport Group's Passenger Experience...
GraphSummit Singapore | Enhancing Changi Airport Group's Passenger Experience...
Neo4j
 
“I’m still / I’m still / Chaining from the Block”
“I’m still / I’m still / Chaining from the Block”“I’m still / I’m still / Chaining from the Block”
“I’m still / I’m still / Chaining from the Block”
Claudio Di Ciccio
 
Full-RAG: A modern architecture for hyper-personalization
Full-RAG: A modern architecture for hyper-personalizationFull-RAG: A modern architecture for hyper-personalization
Full-RAG: A modern architecture for hyper-personalization
Zilliz
 
Alt. GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using ...
Alt. GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using ...Alt. GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using ...
Alt. GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using ...
James Anderson
 
RESUME BUILDER APPLICATION Project for students
RESUME BUILDER APPLICATION Project for studentsRESUME BUILDER APPLICATION Project for students
RESUME BUILDER APPLICATION Project for students
KAMESHS29
 
Introducing Milvus Lite: Easy-to-Install, Easy-to-Use vector database for you...
Introducing Milvus Lite: Easy-to-Install, Easy-to-Use vector database for you...Introducing Milvus Lite: Easy-to-Install, Easy-to-Use vector database for you...
Introducing Milvus Lite: Easy-to-Install, Easy-to-Use vector database for you...
Zilliz
 

Recently uploaded (20)

Video Streaming: Then, Now, and in the Future
Video Streaming: Then, Now, and in the FutureVideo Streaming: Then, Now, and in the Future
Video Streaming: Then, Now, and in the Future
 
UiPath Test Automation using UiPath Test Suite series, part 5
UiPath Test Automation using UiPath Test Suite series, part 5UiPath Test Automation using UiPath Test Suite series, part 5
UiPath Test Automation using UiPath Test Suite series, part 5
 
GraphSummit Singapore | The Art of the Possible with Graph - Q2 2024
GraphSummit Singapore | The Art of the  Possible with Graph - Q2 2024GraphSummit Singapore | The Art of the  Possible with Graph - Q2 2024
GraphSummit Singapore | The Art of the Possible with Graph - Q2 2024
 
20240605 QFM017 Machine Intelligence Reading List May 2024
20240605 QFM017 Machine Intelligence Reading List May 202420240605 QFM017 Machine Intelligence Reading List May 2024
20240605 QFM017 Machine Intelligence Reading List May 2024
 
Introduction to CHERI technology - Cybersecurity
Introduction to CHERI technology - CybersecurityIntroduction to CHERI technology - Cybersecurity
Introduction to CHERI technology - Cybersecurity
 
GraphSummit Singapore | Graphing Success: Revolutionising Organisational Stru...
GraphSummit Singapore | Graphing Success: Revolutionising Organisational Stru...GraphSummit Singapore | Graphing Success: Revolutionising Organisational Stru...
GraphSummit Singapore | Graphing Success: Revolutionising Organisational Stru...
 
20240609 QFM020 Irresponsible AI Reading List May 2024
20240609 QFM020 Irresponsible AI Reading List May 202420240609 QFM020 Irresponsible AI Reading List May 2024
20240609 QFM020 Irresponsible AI Reading List May 2024
 
20 Comprehensive Checklist of Designing and Developing a Website
20 Comprehensive Checklist of Designing and Developing a Website20 Comprehensive Checklist of Designing and Developing a Website
20 Comprehensive Checklist of Designing and Developing a Website
 
みなさんこんにちはこれ何文字まで入るの?40文字以下不可とか本当に意味わからないけどこれ限界文字数書いてないからマジでやばい文字数いけるんじゃないの?えこ...
みなさんこんにちはこれ何文字まで入るの?40文字以下不可とか本当に意味わからないけどこれ限界文字数書いてないからマジでやばい文字数いけるんじゃないの?えこ...みなさんこんにちはこれ何文字まで入るの?40文字以下不可とか本当に意味わからないけどこれ限界文字数書いてないからマジでやばい文字数いけるんじゃないの?えこ...
みなさんこんにちはこれ何文字まで入るの?40文字以下不可とか本当に意味わからないけどこれ限界文字数書いてないからマジでやばい文字数いけるんじゃないの?えこ...
 
Essentials of Automations: The Art of Triggers and Actions in FME
Essentials of Automations: The Art of Triggers and Actions in FMEEssentials of Automations: The Art of Triggers and Actions in FME
Essentials of Automations: The Art of Triggers and Actions in FME
 
Communications Mining Series - Zero to Hero - Session 1
Communications Mining Series - Zero to Hero - Session 1Communications Mining Series - Zero to Hero - Session 1
Communications Mining Series - Zero to Hero - Session 1
 
Removing Uninteresting Bytes in Software Fuzzing
Removing Uninteresting Bytes in Software FuzzingRemoving Uninteresting Bytes in Software Fuzzing
Removing Uninteresting Bytes in Software Fuzzing
 
How to Get CNIC Information System with Paksim Ga.pptx
How to Get CNIC Information System with Paksim Ga.pptxHow to Get CNIC Information System with Paksim Ga.pptx
How to Get CNIC Information System with Paksim Ga.pptx
 
Monitoring Java Application Security with JDK Tools and JFR Events
Monitoring Java Application Security with JDK Tools and JFR EventsMonitoring Java Application Security with JDK Tools and JFR Events
Monitoring Java Application Security with JDK Tools and JFR Events
 
GraphSummit Singapore | Enhancing Changi Airport Group's Passenger Experience...
GraphSummit Singapore | Enhancing Changi Airport Group's Passenger Experience...GraphSummit Singapore | Enhancing Changi Airport Group's Passenger Experience...
GraphSummit Singapore | Enhancing Changi Airport Group's Passenger Experience...
 
“I’m still / I’m still / Chaining from the Block”
“I’m still / I’m still / Chaining from the Block”“I’m still / I’m still / Chaining from the Block”
“I’m still / I’m still / Chaining from the Block”
 
Full-RAG: A modern architecture for hyper-personalization
Full-RAG: A modern architecture for hyper-personalizationFull-RAG: A modern architecture for hyper-personalization
Full-RAG: A modern architecture for hyper-personalization
 
Alt. GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using ...
Alt. GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using ...Alt. GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using ...
Alt. GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using ...
 
RESUME BUILDER APPLICATION Project for students
RESUME BUILDER APPLICATION Project for studentsRESUME BUILDER APPLICATION Project for students
RESUME BUILDER APPLICATION Project for students
 
Introducing Milvus Lite: Easy-to-Install, Easy-to-Use vector database for you...
Introducing Milvus Lite: Easy-to-Install, Easy-to-Use vector database for you...Introducing Milvus Lite: Easy-to-Install, Easy-to-Use vector database for you...
Introducing Milvus Lite: Easy-to-Install, Easy-to-Use vector database for you...
 

Initializing arrays

  • 1. Introduction to PHP Initializing Arrays • No of ways to initialize the array. – For e.g. • $ncststaff[] = “amrish”; $ncststaff[] = “murali”; $ncststaff[] = “narayan”; • $ncststaff[123] = “amrish”; $ncststaff[122] = “murali”; $ncststaff[121] = “narayan”; • $ncststaff = array (“amrish”, “murali”, “narayan”); – to change the indices of the array use => operator. A. Chaubal 1
  • 2. Introduction to PHP Accessing the Array Elements • The elements in the array can be accessed by using the list and each constructs – for e.g while(list($key,$value) = each(countries)) echo(“$value<BR>n”); – current(<arrayname>) gives the current value being accessed. key(<arrayname>) gives the index of the current element that is being accessed. – prev(<arrayname>) gives the previous element. – next(<arrayname>) gives the next element. A. Chaubal 2
  • 3. Introduction to PHP Accessing the Array Elements (cont.) – Array_walk(<arrayname>,<function_name>) • function_name is the function that is written for every member of an array. • For e.g $ncststaff = array (“amrish”, “murali”, “narayan”); array_walk ($ncststaff, printstaff); // function to print each element of the array function printstaff($names) { echo “<B>$names</B><BR>n”; } A. Chaubal 3
  • 4. Introduction to PHP Arrays (cont.) • $ncststaff = array (“dake” => array(“amrish”, “lakshana”, “venkat”), “spc” => array(“narayan”, “murali”,“prasad”)); – creates a two dimensional array. • Sorting Functions – sort() : sorts the elements in the numeric and alphabetical order. – rsort() : sorts the elements in the reverse order. – asort() : sorts the elements in the array without changing the indices. – ksort() : sorts the arrays by key. A. Chaubal 4
  • 5. Introduction to PHP Classes • Class is a template of an object and includes the properties and methods that describe an object and behavior. • Class in PHP is defined using class statement. A. Chaubal 5
  • 6. Introduction to PHP Classes (cont.) • For e.g <? class company { // define the properties var $companyname; // define the methods function company($cname) { $this->companyname = $cname; } function getnames($idcode) { //return the name of the employee for the required idcode } } ?> A. Chaubal 6
  • 7. Introduction to PHP PHP Richness • PHP comes with myriad of options i.e. supports several APIs and interfaces to other programming tools such as – Database connectivity. – LDAP – XML – Mail protocols such as IMAP, SMTP – Image functions etc…. A. Chaubal 7
  • 8. Introduction to PHP Support for Regular Expressions • Not pretty things to look at and work with. – E.g. ^.+@.+..+$ • PHP takes over the headache from the programmers for explicitly coding for pattern matching. • Functions: – ereg() and eregi() – ereg_replace() & eregi_replace() – split() A. Chaubal 8
  • 9. Introduction to PHP Image Generation & Manipulation • PHP offers powerful set of functions for generating and manipulating the images. – Rendering regular geometric figures, modifying images – manipulate text, font and color and even the pixels in the image. • ….creating the images on the fly. A. Chaubal 9
  • 10. Introduction to PHP Image Generation & Manipulation (cont.) • PHP uses the GD library for the most of the image functionality that it offers. • GD library is used for generating the two-dimensional graphics. • PHP API’s provides us with functions to: – Create, delete, resize and modify images. – Draw basic geometric figures – Manipulate text and fonts – Manipulate colors – Interlace and manipulate pixels – Handle PostScript files A. Chaubal 10
  • 11. Introduction to PHP Mailing functions • Sending E-Mails – Mail() • Used to send simple text messages. • Depends on the local mail delivery system. – Using SMTP • Accepts the e-mail for every recipient and goes through trouble of delivering the e-mails. • Receiving E-Mails – PHP works out well with the IMAP protocol. – Rich set of support functions • Imap_open, impa_delete, imap_close, imap_mail_copy, imap_mail_move etc. A. Chaubal 11
  • 12. Introduction to PHP PHP-Database Connectivity • Supports APIs for accessing large number of databases. • ODBC is a standard API for accessing a database that has PHP support. A. Chaubal 12
  • 13. Introduction to PHP PHP-Database Connectivity • Some of Oracle 8.x functions. – OCILogon – OCILogoff – OCIParse – OCIFetch; OCIFetchInto; OCIFetchStatement – OCIExecute – OCIFreeStatement A. Chaubal 13
  • 14. Introduction to PHP LDAP Support in PHP • PHP provides LDAP API’s that allows the programmers to create LDAP clients; by providing transparent access to backend LDAP directory servers. – For e.g. • Web based e-mail client. • Telephone Directory. A. Chaubal 14
  • 15. Introduction to PHP XML Support in PHP • PHP supports a set of functions that can be used for writing PHP-based XML applications. • These functions are used for parsing well formed XML document. A. Chaubal 15
  • 16. Introduction to PHP References • Professional PHP programming – By Jesus Castagnetto, Chris Schollo et al • www.phpbuilder.com • www.php.net A. Chaubal 16
  • 17. Introduction to PHP THANK YOU A. Chaubal 17